Article View: gnu.gcc.help
Article #50220GCC structure byte alignment (porting CodeBase to BSDI)
From: Robert Chen
Date: Thu, 14 Oct 1993 20:21
Date: Thu, 14 Oct 1993 20:21
21 lines
1511 bytes
1511 bytes
(crossposted to gnu.gcc.help and the BSDI mail list)
Hi. I am trying to port CodeBase 5.0 to BSDI BSD/386. BSDI uses gcc
1.40 as the default compiler (I could also compile gcc 2.4.5 if
neccessary).
From the CodeBase porting document:
Almost all UNIX systems and 32-bit compilers use a default
4-byte alignment for structures. If this is true for your
compiler, a 2-byte or 1-byte alignment must be explicitly set
during any compilation using CodeBase if you desire completely
dBase IV- or FoxPro-compatible file support.
I don't know very much about the internal details of gcc. Is the
above assumption correct; does gcc use 4-byte alignment? If so, how
can I make gcc use 1- or 2-byte alignment?
Sorry if this is all really ignorant to any gcc experts, and thanks in
advance for any help.
- Rob
Technical Details
Message-ID:
<1993Oct14.202103.22542@sfu.ca>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!yeshua.marcam.com!zip.eecs.umich.edu!destroyer!nntp.cs.ubc.ca!newsserver.sfu.ca!rchenShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,baba379c8245458f,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-10-14 14:12:49 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!yeshua.marcam.com!zip.eecs.umich.edu!destroyer!nntp.cs.ubc.ca!newsserver.sfu.ca!rchen From: rchen@fraser.sfu.ca (Robert Chen) Subject: GCC structure byte alignment (porting CodeBase to BSDI) Message-ID: <1993Oct14.202103.22542@sfu.ca> Sender: news@sfu.ca Organization: Simon Fraser University, Burnaby, B.C., Canada Date: Thu, 14 Oct 1993 20:21:03 GMT Lines: 21