🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49641

forced memeory location of variables

#49641
From: Charles Wilson
Date: Mon, 17 Jan 1994 23:30
14 lines
1254 bytes
I would like to have a group of global variables end up adjacent to one another in memory
as was declared in th source code.  Does anyone have a way of doing this?  I don't want to
place them to be in a struct.  Can anyone tell me the code that reserves storage fo the
declared variables.  Maybe I can make a modification.

Thanks in advance,


Charlie Wilson      
    -----------------------------------------------------------------
     DTL, Tektronix Inc.        |   Email:  charliew@dtl.labs.tek.com
     P.O. Box 500, M/S 50-662   |   Voice:  (503) 627-4840
     Beaverton, OR  97077       |   FAX:    (503) 627-5502
    -----------------------------------------------------------------
Technical Details
Message-ID: <6094@crl.LABS.TEK.COM>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!uunet!news.tek.com!crl!sunshine!charliew

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,61ed295a53b3785a,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-01-17 23:49:49 PST
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!uunet!news.tek.com!crl!sunshine!charliew
From: charliew@sunshine.LABS.TEK.COM (Charles Wilson)
Newsgroups: gnu.gcc.help
Subject: forced memeory location of variables
Message-ID: <6094@crl.LABS.TEK.COM>
Date: 17 Jan 94 23:30:30 GMT
Sender: news@crl.LABS.TEK.COM
Distribution: gnu
Lines: 14