Article ID: 122542
Article Last Modified on 7/5/2005
#pragma optimize ("",off)
before the function call, and use:
#pragma optimize ("",on)
after the function call.
/* Compile options needed:
/* 32-bit compiler: /Ox, /Og, /O1, or /02
/* 16-bit compiler: /Ox or /Ol
*/
/* This sample prints out 11 */
#include <stdio.h>
void main(void)
{
int i = 500;
loop: i++;
if( i <= 10 ) goto loop;
printf( "This should be 501: %d\n", i );
}
Additional query words: 1.00 1.50 1.51 2.00 7.00 8.00 8.00c 9.00
Keywords: KB122542