Re: alignment of data-types (Anton Ertl)
11 Feb 2003 01:43:57 -0500

          From comp.compilers

Related articles
Re: alignment of data-types (Glen Herrmannsfeldt) (2003-02-06)
Re: alignment of data-types (2003-02-11)
Re: alignment of data-types (Mark McIntyre) (2003-02-11)
Re: alignment of data-types (Glen Herrmannsfeldt) (2003-02-12)
| List of all articles for this month |

From: (Anton Ertl)
Newsgroups: comp.lang.c,comp.compilers
Followup-To: comp.compilers
Date: 11 Feb 2003 01:43:57 -0500
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
References: <3e3fbe78$0$49117$> <> 03-02-033
Keywords: architecture, practice
Posted-Date: 11 Feb 2003 01:43:57 EST

"Glen Herrmannsfeldt" <> writes:
>It is common for x86 compilers to allocate double variables on 4 byte
>boundaries. This was optimal on the 386 and 486, but not on pentium
>and later processors. The difference can be large.

In many cases (e.g., structure members, function parameters) this is
required by Intel's ABI. This is particularly nasty because it is
incompatible with the hardware alignment checking of the 486 and later
CPUs (AC flag). I hope AMD fixed this in the x86-64 ABI.

Followups to comp.compilers.

- anton
M. Anton Ertl

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.