|Why do intermediate codes have >, >=? email@example.com (1996-05-21)|
|Re: Why do intermediate codes have >, >=? firstname.lastname@example.org (1996-05-25)|
|Re: Why do intermediate codes have >, >=? email@example.com (Henry Spencer) (1996-06-13)|
|Re: Why do intermediate codes have >, >=? firstname.lastname@example.org (Chris Fraser) (1996-06-21)|
|From:||Henry Spencer <email@example.com>|
|Date:||13 Jun 1996 20:09:29 -0400|
|Organization:||SP Systems, Toronto|
firstname.lastname@example.org (Alan L. Wendt) writes:
>Can anyone give me a reason why intermediate codes for compilers
>such as gcc or lcc need (or want) the > and >= operators? Would
>not the code generator want to generate the same code for exp1 < exp2
>and exp2 > exp1?
If the subexpressions involve side effects, the two forms are not
equivalent. Depending on the language, there may well be promises about
evaluation order which cannot be blithely discarded.
Henry Spencer, email@example.com
Return to the
Search the comp.compilers archives again.