Short code to determine compiler's number of registers

Walter Murray walter at hpclwjm.HP.COM
Thu Jul 20 02:10:09 AEST 1989


> That said, the way to find out how many registers the compiler will
> use on your code is to compile your code and count how many registers
> were used.  This is completely reliable, although not necessarily
> repeatable.  It is also likely to be a useless statistic.

Agreed.  Another way to find out the extent to which the register
specifier will have effect is to read the manual.  When you take
delivery of your first ANSI-conforming  C compiler, it will come
with some sort of a manual.  This is one of the items that are
required to be documented there.

Walter Murray
-------------



More information about the Comp.lang.c mailing list