Unomitted frame pointers
Nathan Sidwell
nathan@codesourcery.com
Sat Dec 11 16:42:00 GMT 2004
Sam Lauber wrote:
> Do you know about macro expansion? CPP would make it seperate strings. So there would be (simplified);
Have you actually TRIED this ?
> int main(void)
> {
> char str1 = "Hello World!\n";
> char str2 = "Hello World!\n";
> int str_len = 0;
> while (*str1++ != "\0")
> str_len++;
> write(2, str2, str_len);
> }
This program won't compile. How do you know what assembly you'd get?
I think you're hypothesizing with no knowledge of the internals of the compiler,
or actual experimentation.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the Gcc
mailing list