ratpoison-devel
[Top][All Lists]
Advanced

[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:16:45 -0700 (PDT)

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

>-----BEGIN PGP SIGNED MESSAGE-----
>
>I could be wrong on this, but I was always tought in school that using
>"register" keyword made a variable off-limits for optimizations.  Plus
>it doesn't even gaurantee that the variable will be stuffed in a register
>in the first place; its just a hint.  Have you benchmarked the two
>different ways and found a difference?  Less code, more code?  Faster,
>slower?

Its from the GNU libc manual. volatile is the keyword that tells the compiler 
the
variable will be doing some harsh-wack stuff and it should stay away from it. 
register tells the compiler to put the variable in a register if it can.



reply via email to

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