Optimizing problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optimizing problem



When I use the optimize option -O1 I have a problem that a small delay
loop, used in a boot-loader program, gets optimized out of the code.
Only the function call stays but the actual while loop is removed. Is
there any compiler option to make sure this loop stays intact or a
'__attribute__', which will make sure this function is not optimized?

 

John.