[using gcc book] ch5.25 declaring attributes of functions
Chris Devers
cdevers@pobox.com
Tue Aug 26 05:18:00 GMT 2003
In section 5.25, the description of the 'const' attribute notes:
Many functions do not examine any values except their
arguments, and have no effects except the return value.
Basically this is just slightly more strict class than
the @code{pure} attribute above, since function is not
allowed to read global memory.
I've rewritten that second sentence as
This case is slightly more strict than the @code{pure}
attribute above, since the function is not allowed to
read global memory.
--
Chris Devers cdevers@pobox.com
http://devers.homeip.net:8080/blog/
upgrade, n. & v. trans. [From up + Latin gradus "steep incline."]
1 n. An expensive counterexample to earlier upward-compatibility
conjectures.
2 n. A painful crisis which belatedly restores one's faith in the
previous system.
3. v. trans. To replace (obsolete stability) with something less boring.
See also APPLE; CONVERSION; OBSOLESCENCE; RIGHTSIZE; SIDEGRADE.
-- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995
More information about the Gcc
mailing list