From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3bba3d7b0879aedcabf8b6b020259768.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199704180245.WAA01473@alpha0.estabrook.org> Date: Thu, 17 Apr 1997 22:45:11 +0500 From: jestabro@amt.tay1.dec.com Subject: Re: some questions. 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