From: ponion@catbert.alien.bt.co.uk (Peter Onion)
Subject: Structure alignment probs in gcc between Alpha & Intel
Date: 1999/01/27 [thread overview]
Message-ID: <78mpiv$7p9$1@pheidippides.axion.bt.co.uk> (raw)
I'm having a problem porting some code from Intel to Alpha.
There are two parts to the code (kernel & user). The problem
is that the kernel and user parts use differnet structure definitions
to access the data that are passed between them, and while gcc on intel
produces the same memory layout for these different structres on the alpha
gcc aligns things differently thus causing the fields to be accessed
at the wrong offsets in the buffers.
I seem to remember someone telling me that there is a switch or directive
for gcc that stops this problem, but I can't remember who told me (or what they
told me :-( ).
Thanks
Peter Onion.
reply other threads:[~1999-01-27 5:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox