This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: register hint usefulness



Sylvain wrote:
> I would like to know how useful "register" is with the current GCC.
> Can it help the compiler somehow, or is it totally useless these days ?

I believe that it is completely useless in current snapshots.  GCC
used to have two register allocators: the "stupid" one and the
optimizing one.  The stupid allocator obeyed the register keyword.
Stupid was recently removed from the compiler, however, because it was
more trouble than it was worth.  (Thank you rth!)

AG

-- 
Anthony Green                                                        Red Hat
                                                       Sunnyvale, California

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]