??? 06/02/09 06:07 Read: times |
#165727 - lacks side-effects Responding to: ???'s previous message |
Sandeep Gupta said:
Keil compilation is ok. The program is running fine and the delay is also generated. But, PC-Lint is generating the Warning:
"Warning 522: Highest operation, function 'sdelay', lacks side-effects" It is telling you that the function does nothing - which is perfectly true! That's why compilers so often optimise-out delay loops like this! You probably need a decent 'C' textbook to explain standard terms like "side effects". Note that writing delay loops in a high-level language is generally a bad idea anyhow: http://www.8052.com/forum/read/162556 |