For and While

Bharathi S bharathi@lantana.TeNeT.res.in
Thu Feb 20 06:18:00 GMT 2003


> > If i leave the initializing and incrementing part as blank then
> > FOR is exactly equal to WHILE ?

I checked the asm code for simple C program with Wile and for Loop,
Both are seems to same ( around 58 instructions ). I didn't used any
spl options in GCC for optimize the output. Some one can give more
info about it ?

Bye :)
-- 
Bharathi S, IndLinuX Team, (__)
DONLab,     TeNeT Group,   oo /
IIT-Madras, Chennai-INDIA. (_/\




More information about the Gcc-help mailing list