🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50004

Re: (none)

#50004
From: Fergus Henderson
Date: Fri, 26 Nov 1993 14:41
25 lines
1544 bytes
hennes@nexus.han.DE (Ralf Jonas) writes:

>Hi everybody out there...
>
>I've two questions concerning the GCC C-Compiler for i386 PC's:
>
> - Is there any way to stop the compiler from zero-padding structures
>   to make the following long's starting on the next double-word
>   boundary ?
>
>   I checked the archiv DJDEV109 and all the doc's but I found no
>   switch to disable the doubleword-alignement.

Check the docs again.  It's in the "Variable Attributes" section,
in "C Extensions", in the GNU CC manual.

> - Is it possible to make the compiler treat int's and unsigned's as
>   16-bit variables ? I found a switch called "-mshort", but that
>   switch is for use on 680x0 CPU's only :-(

I don't think there's any easy way.  The hard way is to take a look
at the source to gcc and start hacking... ;-)

-- 
Fergus Henderson                     fjh@munta.cs.mu.OZ.AU
Technical Details
Message-ID: <9333101.254@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
References: <754008183.AA06975@nexus.han.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,282064a60304274f
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-11-26 06:48:09 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: (none)
Message-ID: <9333101.254@mulga.cs.mu.OZ.AU>
Sender: news@cs.mu.OZ.AU
Organization: Computer Science, University of Melbourne, Australia
References: <754008183.AA06975@nexus.han.de>
Distribution: gnu
Date: Fri, 26 Nov 1993 14:41:52 GMT
Lines: 25