[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] cleaning event handler

From: sabetts
Subject: Re: [RP] cleaning event handler
Date: Fri, 20 Apr 2001 10:31:26 -0700 (PDT)

At Fri, 20 Apr 2001 10:07:46 -0700 (PDT) , Jonathan Walther <address@hidden> 

>Ok, let me put this in different words.  The way the compiler currently works,
>if you declare a variable as "register", theres a whole host of optimizations
>that can't be done with regard to it.  Whether or not it actually goes into the
>register, the compiler has to treat it specially.  Unless thats changed *very*
>recently, thats still the way it is.  Theres a reason you don't see it used
>much in the Linux kernel source, where you would expect to see it all over
>the place.  GNU compiler currently just ignores register directive on x86 
>anyway, but still treats the var with kid gloves.

hmm, this does make register pretty useless. I admit if I were writing an 
xmalloc function I wouldn't use register. Perhaps rc has some comments since he 
wrote it...

reply via email to

[Prev in Thread] Current Thread [Next in Thread]