What is the current situation regarding the C "register" decl?

David Boles <boles@cayman.asg.arlut.utexas.edu>
Tue, 23 Jun 1992 16:39:07 GMT

          From comp.compilers

Related articles
What is the current situation regarding the C "register" decl? boles@cayman.asg.arlut.utexas.edu (David Boles) (1992-06-23)
Re: What is the current situation regarding the C "register" decl? sasghm@unx.sas.com (Gary Merrill) (1992-06-24)
Re: What is the current situation regarding the C "register" decl? moss@cs.umass.edu (1992-06-26)
| List of all articles for this month |

Newsgroups: comp.compilers
From: David Boles <boles@cayman.asg.arlut.utexas.edu>
Keywords: C, optimize, registers, question
Organization: Compilers Central
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?


Thanks,


David Boles
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]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.