gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] register keyword?


From: Gary E. Miller
Subject: Re: [gpsd-dev] register keyword?
Date: Mon, 22 Jan 2018 17:35:58 -0800

Yo Hal!

On Mon, 22 Jan 2018 17:29:13 -0800
Hal Murray <address@hidden> wrote:

> address@hidden said:
> > At one point, someone thought the register keyword made a
> > difference.   
> 
> 50 years ago?  Times have changed.
> (Maybe only 40.)

So play with it yourself on the godbolt site.  You can see, for some
combinations of gcc and optimization flags that it does make a nice
difference in the asmembly code.

> > There is no obvious win to removing it.  
> 
> Reduced clutter.  Not a big deal, but lots of little things add up.

Yes, but that clutter was added for a reason.  My just playing with 
godbolt shows it may still make a difference.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin

Attachment: pgpuiu6ZtGwWZ.pgp
Description: OpenPGP digital signature


reply via email to

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