diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-02-16 20:35:03 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-02-16 20:35:03 +0100 |
| commit | 09d468b237e58dd70cfa0a4311efab5ddabc9f95 (patch) | |
| tree | 47d75db266872db5e4c4cad0c95ee1a2ba51febe /src/stage1/codegen.cpp | |
| parent | d3edf298d18ff89bb0e0a3bfcee84a9fb63b1c6b (diff) | |
| download | zig-09d468b237e58dd70cfa0a4311efab5ddabc9f95.tar.gz zig-09d468b237e58dd70cfa0a4311efab5ddabc9f95.zip | |
x64: overhaul stack handling mechanics
Now, the abstracted stack offsets grow in the same direction as
the real stack values in hardware, and allocating stack memory is done
by the taking the last stack offset, adding required abi size
and aligning to the required abi align. Stack handling is now more
natural as it aligns itself with how it works in hardware; hence
stepping through the debugger and printing out different stack
values is intuitive. Finally, the stack pointers are now correctly
aligned to the required (and not necessarily natural) alignment.
Diffstat (limited to 'src/stage1/codegen.cpp')
0 files changed, 0 insertions, 0 deletions
