|What is the current situation regarding the C "register" decl? email@example.com (David Boles) (1992-06-23)|
|Re: What is the current situation regarding the C "register" decl? firstname.lastname@example.org (Gary Merrill) (1992-06-24)|
|Re: What is the current situation regarding the C "register" decl? email@example.com (1992-06-26)|
|From:||David Boles <firstname.lastname@example.org>|
|Keywords:||C, optimize, registers, question|
|Date:||Tue, 23 Jun 1992 16:39:07 GMT|
I have been told many times that modern C compilers on machines with lots
of registers essentially ignore the programmer's "register" declaration.
What I would like to know is:
1. Do the compilers (such as Sun's acc and GNU's gcc)
_completely_ ignore the declaration or do they just
assign it very low importance?
2. Do any C compilers out there that produce "good" code
take this declaration into account?
Applied Research Laboratories
[A compiler can also take a register declaration as an assertion that there
are no references to the address of a variable; it really shouldn't ignore
that aspect. -John]
Return to the
Search the comp.compilers archives again.