🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49636

Global non-alignment with gcc

#49636
From: Rafi Dar
Date: Mon, 17 Jan 1994 17:28
38 lines
2217 bytes
Dear Sir,

Our project involves conversion of RT S/W , that was previously developed
for 
Intel 386/486 CPU under Intel's RMK O.S. and compiled  with Intel's iC386
compiler.
The iC386 compiler has a special "noalign" flag (and also a similar #pragma)
that we used to instruct it to set all structures and variables to 
non-aligned addresses (packed) and handle them correctly.

We are currently working on converting the above S/W to new environments:
A. Sun 4 (Classic/LX) with Sun-O.S.
B. Motorola 68302 with VRTXsa O.S.

We are working with GNU (gcc) version 2.5.7 . We could not find any
compilation
flag or any other mean to instruct the compiler to make the same global 
non-aligned (packed) structures in all modules.
We tried to use your: "   __attribute__ ((packed)) "  but we could not use 
it on typedefs but only on structure sub-fields. It also involves a lot of 
changes to the S/W code .


1. Is there a way to globally use non-aligned variables & structures?

2. Any special notes that we should be aware of for builing and using gcc 
   for motorola 68302 based target ??


                                                                            
                                                   with thanks,
                                                
                                                Rafi Dar
                                                ECI Telecom
                                                Email: raphi@ecitele.com
                                                Fax: 972-3-9266870
                                                Phone: 972-3-9266876
Technical Details
Message-ID: <QD3A9167@pc-raphi>
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!ecitele.COM!raphi

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,de74521022f553b0,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-01-17 10:49:06 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!ecitele.COM!raphi
From: raphi@ecitele.COM (Rafi Dar)
Newsgroups: gnu.gcc.help
Subject: Global non-alignment with gcc
Date: 17 Jan 1994 12:28:19 -0500
Organization: GNUs Not Usenet
Lines: 39
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <QD3A9167@pc-raphi>