Optimizing problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Optimizing problem
- To: <coldfire-gnu-discuss@xxxxxxxxxxxxxxxx>
- Subject: Optimizing problem
- From: "DMS Tech, John" <john@xxxxxxxxxxxx>
- Date: Fri, 5 Jan 2007 12:43:58 +0200
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.