[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mes] MesCC neglects alignment requirements of the System V ABI
From: |
Jan Nieuwenhuizen |
Subject: |
Re: [bug-mes] MesCC neglects alignment requirements of the System V ABI |
Date: |
Thu, 18 Jul 2019 21:04:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Mark H Weaver writes:
> The System V ABI specifies alignment requirements for each C type.
> Padding must be implicitly inserted in structures to ensure that each
> field is properly aligned. MesCC does not do this, and therefore it
> violates the ABI.
>
> For example, see section 3.1.2 (Data Representation) here:
>
>
> https://software.intel.com/sites/default/files/article/402129/mpx-linux64-abi.pdf
>
> One consequence of this is that MesCC-compiled code cannot reliably be
> linked with code compiled by other compilers, because there may be
> disagreements over structure layout.
That's good to know. I haven't had being compatible as a goal but it
could be (more than) nice to have, just from a verification perspective
as you point out.
Thanks,
janneke
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | AvatarĀ® http://AvatarAcademy.com
Re: [bug-mes] MesCC neglects alignment requirements of the System V ABI,
Jan Nieuwenhuizen <=