Hardware 版 (精华区)
发信人: edmcgy (达达尼), 信区: Hardware
标 题: DSP(Data Signal Processor)的应用(15)
发信站: 紫 丁 香 (Thu Apr 23 15:34:28 1998), 转信
Workaround/Solution
WORKAROUND/SOLUTION
===================
Do not compile with optimization.
Title: Autoincrement of pointer in for loop does not work
Bug #
Tool
Version
Fixed?
SDSsq03272
Compiler
V6.60
Will fix in a future release
Bug Description
BUG DESCRIPTION
===============
Any time the compiler sees an expression of the form ...
*++ =
and you compile with -v50, the post-increment on the pointer doesn't occur.
The pointer must be to a 16-bit integer type. The bitwise operations are
&=, |=, ^=. So, for example ...
unsigned *p1;
*p1++ &= 0xfffe;
--
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: edmcgy.hit.edu.c]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.228毫秒