where is the string literal allocated ? On the stack ?

Michael gonwg@hotmail.com
Fri Apr 20 15:37:00 GMT 2007


----- Original Message ----- 
From: "David Sveningsson" <ext@sidvind.com>
To: "Michael Gong" <mwgong@cs.toronto.edu>
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



More information about the Gcc-help mailing list