[<<][c][>>][..]
Thu Sep 23 10:13:38 CEST 2010

Const correctness

What we already know is that global variables declared "const" will go
into the .rodata section.

What about functions?  I'd like to hash the __FUNCTION__ variable into
an integer to get method tags.  Does the compiler inline this if the
hashing function is declared const?


[1] http://en.wikipedia.org/wiki/Const-correctness 
[2] http://stackoverflow.com/questions/212237/constants-and-compiler-optimization-in-c



[Reply][About]
[<<][c][>>][..]