register variables

Wayne A. Christopher faustus at ucbcad.UUCP
Sat Jun 22 19:43:30 AEST 1985


Speaking of register variables -- does anybody know what various C
compilers do when you don't declare variables as register, but there
are spare registers to use? From what I hear, neither ccom nor c2 are
smart enough to put local variables in registers when they are
available. It seems that it would be simple to just take the first few,
or even the most heavily used local variables that don't ever get &'d
and make them register...

	Wayne



More information about the Comp.lang.c mailing list