Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys
On May 17, 7:09am, david%l8s.co.uk@localhost (David Laight) wrote:
-- Subject: Re: CVS commit: src/sys
| On Tue, May 17, 2005 at 04:14:58AM +0000, Christos Zoulas wrote:
| >
| > Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
| > implement, xtoa(), but I think defining the samestring 50 times is a bit
| > too much.
|
| gcc probably puts "0123456789abcdef" into the .rodata.str1.1 section
| and ld will then merge the strings that come from different source files.
|
| (I discovered this feature when it went horribly wrong!)
Not if it is not const.
christos
Home |
Main Index |
Thread Index |
Old Index