[sldev] Re: dead code
Ben Byer
bbyer at mm.st
Tue May 29 16:23:23 PDT 2007
On May 23, 2007, at 5:11 PM, Dzonatas wrote:
> Andrew Meadows wrote:
>> Ben Byer -
>>
>> Your list undoubtedly contains lots of dead code however I
>> find some of it suspiciously alive.
>
> Compiler optimizations may have moved code from inside one function
> and stuck it in-line in another. That would give the appearance of
> dead code. The symbols are generally left inside the object file,
> but they can be removed if size optimization is desired. I see the
> default is to compile for speed over size.
Yeah, I think this is what happened. When I get a chance, I'll try
rerunning through the same steps with -O0 for both runs -- however,
I'm not sure if dead code stripping will still happen with
optimizations turned off.
-b
More information about the SLDev
mailing list