From: jestabro@amt.tay1.dec.com <jestabro@amt.tay1.dec.com>
Subject: Re: some questions.
Date: Thu, 17 Apr 1997 22:45:11 +0500 [thread overview]
Message-ID: <3bba3d7b0879aedcabf8b6b020259768.axp-list@archive.invalid> (raw)
In-Reply-To: <3356D92E.2DFC19BD@jrp.tiac.net>
>>> Jim Paradis said:
>
> What the Digital C compiler offers is the "-taso" switch. This
> stands for "Truncated Address Space Option". The only thing that
> switch does is instruct ld to load the program in "low" memory
> (text at 0x20000000 data at 0x40000000, stack below text).
> Although the compiler still generates 64-bit pointers, because
> all of the memory addresses fit in 32 bits you can still sling
> pointers and longs around with relatively wild abandon...
>
> This trick doesn't seem to work nearly as well on Linux/Alpha.
> The equivalent "ld" switches to make this work (-Ttext, -Tdata)
> seem to be broken... try to use them and you get relocation
> overflows and/or bfd assertion failures.
Another reason might be because a pointer returned by a syscall such as
"mmap" may *NOT* fit into 32-bits. The Xservers use mmap to map framebuffer
memory into their (user) address space, and the pointers typically end up
being somewhere *above* 0x15500000000UL... :-( (yes, that's 8 zeros) :-(
--Jay++
-------------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Migration Tools - LINUX Project
Digital Equipment Corp. (508) 952-4202 or (DTN) 227-4202
151 Taylor Street - TAY1-2 enet: jestabro@amt.tay1.dec.com
Littleton, MA 01460-1407 decnet: tallis::jestabro
-------------------------------------------------------------------------------
--
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 parent reply other threads:[~1997-04-17 17:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3356D92E.2DFC19BD@jrp.tiac.net>
1997-04-17 17:45 ` jestabro [this message]
1997-09-10 19:25 Some Questions Torsten Zirzlaff
-- strict thread matches above, loose matches on Subject: below --
1997-04-18 2:15 some questions Jim Paradis
1997-04-17 22:06 david l nicol
[not found] <Pine.A32.3.91.970416195518.18696A-100000@olvera.seas.ucla.edu>
1997-04-17 21:52 ` Richard Henderson
1997-04-17 3:16 Javier Henderson
[not found] <33557AE8.73908639@jrp.tiac.net>
1997-04-17 2:59 ` CHIH-HSIANG HENRY YAO
1997-04-17 1:20 Jim Paradis
1997-04-16 20:06 Anthony Pardini
[not found] <Pine.LNX.3.91.970416144742.30218B-100000@ns2.cmpu.net>
1997-04-16 19:52 ` Ximenes
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