Re: Off-topic

H. Peter Anvin (hpa@transmeta.com)
7 Mar 1997 06:07:16 GMT


Followup to: <19970306225651.10483.qmail@bigred.inka.de>
By author: Olaf Titz <olaf@bigred.inka.de>
In newsgroup: linux.dev.kernel
>
> > __attribute__((packed)) _does_ account for hardware enforced alignment.
>
> Then you can't use it for structures that are defined by data exchange
> formats at all. At least, such code will get non-portable.
>

I think he meant that __attribute__((packed)) will generate the
appropriate code to *work around* hardware enforcement (masks and
shifts, typically.)

-hpa

-- 
This space intentionally has nothing but text explaining why this
space has nothing but text explaining that this space would otherwise
have been left blank, and would otherwise have been left blank.