Article View: gnu.gcc.help
Article #53595(none)
From: Doug Fowley
Date: Wed, 02 Oct 1991 07:03
Date: Wed, 02 Oct 1991 07:03
17 lines
1217 bytes
1217 bytes
To whom it may concern, This is a question, not a bug report, but I don't know how to address my question... I'm using GCC under the LynxOS operating system on a 386-based PC/AT. The compiler was distributed by Lynx. Apparently, they made the compiler with "STRICT_ALIGNMENT". I'm trying to write a device driver for a memory mapped I/O card. The card's registers are not aligned on the correct byte boundaries. Thus, I can't write a C struct to overlay the card's memory. I need an option to the compiler that overrides the "STRICT_ALIGNMENT" and packs structure members in memory. I've seen this option with other C compilers, but can't find one for GCC. Is there such an option?
Technical Details
Message-ID:
<9110021503.AA07843@tdc.salem.ge.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tdc.salem.ge.COM!fowleyShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,abe0c5a6a9579696,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1991-10-03 17:52:04 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tdc.salem.ge.COM!fowley From: fowley@tdc.salem.ge.COM (Doug Fowley) Newsgroups: gnu.gcc.help Subject: (none) Message-ID: <9110021503.AA07843@tdc.salem.ge.com> Date: 2 Oct 91 07:03:41 GMT Sender: gnulists@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 17