[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: svn commit: trunk/busybox/coreutils
From:       Bernhard Fischer <rep.dot.nop () gmail ! com>
Date:       2007-04-20 8:35:03
Message-ID: 20070420083503.GA14029 () aon ! at
[Download RAW message or body]

On Fri, Apr 20, 2007 at 01:05:32AM +0200, Denis Vlasenko wrote:
>On Friday 20 April 2007 00:04, Bernhard Fischer wrote:
>> >+		"cols",     /* 3 */
>> >+		"columns",  /* 4 */
>> >+		"size",     /* 5 */
>> >+		"ispeed"+1, /* 6 */
>> > 		"ispeed",
>> 
>> Can you please explain the +1 here?
>> It is not immediately obvious to me.
>> thanks,
>
>"ispeed"+1 == "speed"
>
>It's a poor man's const string reuse, gcc/ld is not smart enough
>to notice that "ispeed" and "speed" can be implemented as
>one object in rodata. Thus we help gcc to see it.

Must have been too tired to recognize it, yep.
Thanks for the explanation, though.

cheers,
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic