Not logged in
Log in now
Create an account
Subscribe to LWN
Pencil, Pencil, and Pencil
Dividing the Linux desktop
LWN.net Weekly Edition for June 13, 2013
A report from pgCon 2013
Little things that matter in language design
I think inline is like register. Very useful if you know the target machine, but it is difficult to make a correct assessment if the same optimization should be applied to all architectures.
Quotes of the week
Posted Aug 23, 2012 16:48 UTC (Thu) by zlynx (subscriber, #2285)
register-test.c:7:2: error: address of register variable ‘i’ requested
GCC does not allow the programmer to get the address of a "register" variable.
So it is like "const." It keeps you from doing something dumb.
Posted Sep 3, 2012 8:37 UTC (Mon) by philomath (guest, #84172)
Posted Sep 3, 2012 16:47 UTC (Mon) by khim (subscriber, #9252)
Posted Aug 23, 2012 19:13 UTC (Thu) by vonbrand (subscriber, #4458)
A long time ago, somebody told me there are three types of C compilers: Very smart ones, which disregard register because they do a better job at asigning values to registers than any static "this variable goes into a register" could possibly do; smart ones, which heed the register decoration when they can; and dumb ones which disregard register completely. GCC is one of the smarter ones around...
Posted Aug 25, 2012 0:00 UTC (Sat) by giraffedata (subscriber, #1954)
Posted Aug 25, 2012 13:45 UTC (Sat) by mpr22 (subscriber, #60784)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds