(→Postfix Code) |
(→Postfix Code) |
||
Line 16: | Line 16: | ||
The Postfix code for the above function is as follows: | The Postfix code for the above function is as follows: | ||
+ | {{CollapsedCode|Postfix code| | ||
<asm> | <asm> | ||
TEXT | TEXT | ||
Line 82: | Line 83: | ||
RET | RET | ||
</asm> | </asm> | ||
+ | }} | ||
[[category:Compiladores]] | [[category:Compiladores]] | ||
[[category:Ensino]] | [[category:Ensino]] |
Consider the following C function: <c> int main() {
int n = 45, i = 0, j = 1, *seg = &i; while (n-- > 0) { print(*seg = i + j); seg = (seg == &i) ? &j : &i; } return 0;
} </c>
The Postfix code for the above function is as follows:
[Expand] Postfix code |
---|