From: Jim Nance <jlnance@avanticorp.com>
Subject: Re: Common Porting Problem
Date: Fri, 29 Nov 1996 19:24:52 -0500 (EST) [thread overview]
Message-ID: <fad4691b8f65e68486568354aeb091dc.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.LNX.3.91.961128142553.24232A-100000@lonsdale.lbl.gov>
> I know I'm going to be raked over the coals for asking this, as it's
> probably been rehashed any number of times; here it goes anyway.
I see you have been.
> My question; is there a compiler switch I can use to make the pointers 4
> bytes or the integers 8, so this stuff will work without major surgery?
The Digital Unix compiler has a switch (-taso) which tries to do this.
What it does is link everything in the lower 2G of address space so that
if something tries to stuff a pointer into an integer the pointer will
fit. Gcc does not have this option, but you may be able to use the
-Tbss -Tdata and -Ttext flags to achieve the same effect. These flags
allow you to set the location of the bss, data, and text sections of
the executables. Unfortunatly I have no idea where you should locate
them :-(. You may also have to hack up malloc() and friends to ensure
that you only get memory in the lower 31 bits of address space.
Hope this helps.
Jim
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next prev parent reply other threads:[~1996-11-30 0:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.3.91.961128142553.24232A-100000@lonsdale.lbl.gov>
1996-11-28 23:33 ` Common Porting Problem Michal Jaegermann
1996-11-30 0:24 ` Jim Nance [this message]
1996-11-29 9:33 David A Rusling
[not found] <9611282208.ZM1182@davros.bwh.com>
1996-11-29 5:34 ` Michal Jaegermann
[not found] <locklin@lonsdale.lbl.gov>
1996-11-29 4:08 ` Bryan W. Headley
-- strict thread matches above, loose matches on Subject: below --
1996-11-28 22:25 Earl Curley
1996-11-28 20:38 Scott Locklin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox