Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

ARM AAPCS stdarg/vararg alignment #58

Merged
merged 1 commit into from
Feb 8, 2016
Merged

Conversation

smolt
Copy link
Member

@smolt smolt commented Feb 4, 2016

Types with natural alignment >= 8-bytes (e.g. double) will be 8-byte aligned instead of usual 4-byte alignment on call stack. Reference:

http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042f/IHI0042F_aapcs.pdf

This goes with a companion ldc PR for abi-arm.cpp that is almost ready.

Tested on watchOS and raspbian Pi. The test will be added to test suite too.

Types with natural alignment >= 8-bytes (e.g. double) will be 8-byte
aligned instead of usual 4-byte alignment.
@smolt
Copy link
Member Author

smolt commented Feb 5, 2016

ah, forgot tvOS is also APCS

redstar added a commit that referenced this pull request Feb 8, 2016
ARM AAPCS stdarg/vararg alignment
@redstar redstar merged commit 5e0cc5d into ldc-developers:ldc Feb 8, 2016
@smolt smolt deleted the arm-stdarg branch February 27, 2016 20:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants