🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50214

command options

#50214
From: Dan Harling
Date: Thu, 14 Oct 1993 14:45
14 lines
1469 bytes
I have a program that runs on two different platforms, and generates
binary data using a struct that contains structs that contain
bit-fields.  I would like the output data to be interchangeable among
the platforms, but one platform assigns bitfields from the MSB down and
pads structs to 32-bit word boundaries, and the other platform assigns
bitfields from the LSB up and allows 16-bit alignment.

Does gcc (we have 2.4.5) have any command options to specify bitfield
order and struct alignment?  If so we can port our code to gcc on one
platform and configure it to work like the other.
____________________________________________________________________________
Daniel A. Harling                        (harling@pictel.com)
PictureTel Corp.             Opinions expressed are not necessarily those of
Peabody, MA  01960                   PictureTel Corp. (so there!)
Technical Details
Message-ID: <9310141423.AA19683@stingray.pictel.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!pictel.com!harling

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,6223da95c23c55a3,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-10-14 08:34:28 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!pictel.com!harling
From: harling@pictel.com (Dan Harling)
Newsgroups: gnu.gcc.help
Subject: command options
Date: 14 Oct 1993 10:45:06 -0400
Organization: GNUs Not Usenet
Lines: 14
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9310141423.AA19683@stingray.pictel.com>