You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
436 B
8 lines
436 B
|
|
Exercise 5.37: One way to understand the
|
|
compiler’s preserving mechanism for optimizing stack usage is to see
|
|
what extra operations would be generated if we did not use this idea. Modify
|
|
preserving so that it always generates the save and
|
|
restore operations. Compile some simple expressions and identify the
|
|
unnecessary stack operations that are generated. Compare the code to that
|
|
generated with the preserving mechanism intact.
|
|
|