Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/lib/libsa
In article <20080326210032.GG10654%snowdrop.l8s.co.uk@localhost>,
David Laight <david%l8s.co.uk@localhost> wrote:
>On Mon, Mar 24, 2008 at 12:18:06PM +0200, Alan Barrett wrote:
>> On Tue, 18 Mar 2008, matthew green wrote:
>> > Is there an easy way of saying
>> >
>> > #if optimise_for_space
>> > use this implementation
>> > #else
>> > use another implementation
>> > #endif
>> >
>> > yes - i had considered suggesting this. you want to check
>> > for __OPTIMIZE__ IIRC. the gcc manual probably has it.
>>
>> Found it: __OPTIMIZE_SIZE__, documented in "info cpp".
>
>Stuff for boot/bootxx often uses STANDALONE
If size is important it should also be compiled with -Os, and then
__OPTIMIZE_SIZE__ is defined. If you don't care about size, you are
not using -Os, and you get speed instead :-) It seems that some part
of the boot code does not use -Os, so I assume it does not care about
size.
christos
Home |
Main Index |
Thread Index |
Old Index