This repository was archived by the owner on Jun 27, 2024. It is now read-only.
Open
Conversation
Adjusts section 1.2 to match the System-V x86_64 psABI, as defined by https://uclibc.org/docs/psABI-x86_64.pdf.
lukflug
suggested changes
Sep 5, 2022
| If the parameter is of type `float` or `double`, it will be stored in the next | ||
| available SSE register (`XMM0`-`XMM7`). | ||
|
|
||
| `long double` and structs/unions larger than 32-bytes are passed by the caller allocating space, and passing a pointer to that space in place as an integer parameter |
| A function calling this needs to have at least 32 bytes of stack to store the | ||
| parameters and align the stack upon call. | ||
| parameters in `RDI`, `XMM0`, `RSI`, `RDX`, `RCX`, and `XMM1` respectively. | ||
| As no parameters are passed on the stack, the caller would also have to push 8 bytes before calling the function (which will align the stack by pushing an additional 8 bytes), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adjusts section 1.2 to match the System-V x86_64 psABI, as defined by https://uclibc.org/docs/psABI-x86_64.pdf.
Also removes references to rbp from the stack section, as most compiled code will not push the base pointer nowadays.