🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52174

Re: global variables in registers, esp. on [34]86?

#52174
From: David Kastrup
Date: Tue, 02 Feb 1993 00:01
23 lines
1831 bytes
partain@dcs.gla.ac.UK (Will Partain) writes:

>We are using the GCC `register int foo __asm__("g5")' extension to
>"steal registers" for our Glasgow Haskell system.  We've figured it
>out for Sun4s and Sun3s (the only machines we have here).

>What registers can you get away with stealing on a [34]86?  Some of my
>Linux-toting friends say "none", which is a depressing thought.  Note
>that we are prepared to post-process .s files and/or do other horrible
>things, if it will get us more machine registers for our own use.

I would suggest you forget it. I am not that competent about gcc, but
I do know the Intel crap. Registers are that sparse that almost any
code not too trivial will necessiate reloading. So register assignment
is better left to the compiler instead of doing it yourself.

Try to figure fitting any serious code into the available registers
(say a FFT). And on DOS, segments make the matter really detestable.
Thank god we are not discussing that.
-- 
 David Kastrup        dak@messua.informatik.rwth-aachen.de          
 Tel: +49-241-72419 Fax: +49-241-79502
 Goethestr. 20, W-5100 Aachen, Germany
Technical Details
Message-ID: <dak.728611302@tabaqui>
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!urmel.informatik.rwth-aachen.de!tabaqui!dak
References: <9302011508.AA05344@life.ai.mit.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,40e59f4b0978bcde
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-02-01 16:01:42 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!urmel.informatik.rwth-aachen.de!tabaqui!dak
From: dak@tabaqui.informatik.rwth-aachen.de (David Kastrup)
Newsgroups: gnu.gcc.help
Subject: Re: global variables in registers, esp. on [34]86?
Date: 2 Feb 93 00:01:42 GMT
Organization: Rechnerbetrieb Informatik - RWTH Aachen
Lines: 23
Distribution: gnu
Message-ID: <dak.728611302@tabaqui>
References: <9302011508.AA05344@life.ai.mit.edu>
NNTP-Posting-Host: tabaqui.informatik.rwth-aachen.de