Re: where is the string literal allocated ? On the stack ?

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

 




----- Original Message ----- From: "David Sveningsson" <ext@xxxxxxxxxxx>
To: "Michael Gong" <mwgong@xxxxxxxxxxxxxx>
Sent: Friday, April 20, 2007 10:31 AM
Subject: Re: where is the string literal allocated ? On the stack ?


Michael Gong skrev:

Where is the string literal allocated ? Is it on the stack ?


Hi, IIRC they are put in the .DATA section.



Forgive my silly question: what's IIRC means ?

My understanding is : there is a global string literal pool, so the string literal , like "abc", is not allocated on stack. Is it correct ?

Regards,

Mike


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux