This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
about the 'for' statement
- To: "gcc maillist" <gcc@gcc.gnu.org>
- Subject: about the 'for' statement
- From: "Wang Yong" <wung_y@263.net>
- Date: Mon, 16 Aug 1999 15:02:23 +0800
Hi, all
in gcc, how 'for' statement is translated?
for example:
for (i=1;i++;i<10){
//some statement here
}
If this for statement will be translated to something like this :
i=1;
l1:
if (i<10){
//some statements here
i++;
goto l1;
}
or
i=1;
l1:
i++;
if (i<10){
//some statements here
goto l1;
}