From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,af60710f529ecc54,start X-Google-Attributes: gidfee84,public From: mbeattie@sable.ox.ac.uk (Malcolm Beattie) Subject: Global variables in registers with DEC C Date: 1995/08/14 Message-ID: <40nn4k$6tc@news.ox.ac.uk>#1/1 X-Deja-AN: 108139355 organization: Oxford University, England newsgroups: comp.unix.osf.osf1 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 Oxford University Computing Services "Widget. It's got a widget. A lovely widget. A widget it has got." --Jack Dee