lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lightning] Omit frame pointer


From: Marc Nieper-Wißkirchen
Subject: [Lightning] Omit frame pointer
Date: Sun, 03 Sep 2017 15:32:42 +0000

Some architectures like the x86 (32 bits or 64 bits with System V ABI) have only very few registers available. For those architectures it makes a lot of sense to make the frame pointer available as another callee-saved register.

(This mimicks the GCC option -fomit-frame-pointer.)

For this to work, the stack pointer is used to access the locations in the current frame. The value returned by the allocai instruction will be adjusted because it will be relative to the stack pointer, not the frame pointer.

Would this introduce any limitations to the code produced?

Marc


reply via email to

[Prev in Thread] Current Thread [Next in Thread]