Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mbeattie@sable.ox.ac.uk (Malcolm Beattie)
Subject: Global variables in registers with DEC C
Date: 1995/08/14	[thread overview]
Message-ID: <40nn4k$6tc@news.ox.ac.uk> (raw)


I'm doing some low-level optimisation of perl5 and it turns out that
forcing a particular global variable into a register is a big win.
GNU C has an extension which allows this, via statements such as
    register int foo asm("$9");
However, I cannot find how to do the same with DEC's C compiler
(I have the ordinary one and the GEM back-end one, i.e. cc -migrate)
or even if it's possible. Can anyone help?

--Malcolm

-- 
Malcolm Beattie <mbeattie@sable.ox.ac.uk>
Oxford University Computing Services
"Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee



                 reply	other threads:[~1995-08-14  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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