> As far as I know GCC compiles on a per file basis at present. So it> can't make decisions like placing globals into registers. It's not a> particularly useful optimization anyway, unless there are many> registers.

If you want more infos about how register allocation is processed in
GCC you can read Michael Matz paper: «Design and implementation of the
graph coloring register allocator for GCC».