
390 Compilers – Principles and Practice
R4: Empty 0x00000000000000000000
R3: Empty 0x00000000000000000000
R2: Empty 0x00000000000000000000
R1: Empty 0x00000000000000000000
=>R0: Empty 0x00000000000000000000
Note that the stack is now empty. The next few instructions will invoke the printr function to print
the value in FPacc. We shall not try to trace them.
While developing FPU-based functions, it is generally advisable at the end of the function, to leave
the FPU stack in the same condition as at start. For a program, it is almost mandatory to leave the FPU
stack empty at the end of the program.
The above example should have helped you appreciate ...