Mail Archives: djgpp/1996/12/16/23:46:09
In article <7lld+CAWnbtyEwMN AT talula DOT demon DOT co DOT uk>, Shawn Hargreaves
<Shawn AT talula DOT demon DOT co DOT uk> writes
>I very much doubt that global variables can be allocated to registers.
>Think what this would mean: no code, anywhere in your program, could use
>these registers! Because of the way C compiles each source files as an
>individual unit, there is no way that this could be enforced.
AFAIK it *is* possible to do this with gcc. It is probably possible with
djgpp but I can think of very few programs it would benefit overall.
I think one of the gnu Forth interpreters (Tile or GForth) has a compile
option to use global register variables. I can't give more details
because a Forth system under the LGPL has a few problems for me (so I
deleted it).
(Forth of course is an ideal use for global registers ;)
---
Paul Shirley: shuffle chocolat before foobar for my real email address
- Raw text -