🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54256

Alignment of Variables

#54256
From: Jim Forster
Date: Wed, 02 Jan 1991 06:34
14 lines
1116 bytes
Is there any way to request that alignment of integers be forced to
longword (4 byte) addresses?  I'm using a 68020, and while the CPU doesn't
require this, I guess for historical reasons and 68000 compatibility, the
compiler aligns integers on shortword (even) boundaries.  I'd like to
request that the alignment be forced to longword boundary, so only one
memory cycle, rather than two, will be needed.  To complicate it, I'd like
to make this request on a per-struct basis.

Thanks,

--

  -- Jim
Technical Details
Message-ID: <FORSTER.91Jan1223417@dirt.stars.flab.Fujitsu.JUNET>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!usc!apple!csl!hercules.csl.sri.com!forster

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e2b0eec46d084972,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1991-01-02 10:38:00 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!usc!apple!csl!hercules.csl.sri.com!forster
From: forster@dirt.stars.flab.Fujitsu.JUNET (Jim Forster)
Newsgroups: gnu.gcc.help
Subject: Alignment of Variables
Message-ID: <FORSTER.91Jan1223417@dirt.stars.flab.Fujitsu.JUNET>
Date: 2 Jan 91 06:34:17 GMT
Sender: news@csl.sri.com (NEWS Administrator)
Distribution: gnu
Organization: cisco Systems, Inc.
Lines: 14