Re: CONFIG_TINY

Luc Van Oostenryck
2002-10-31T21:05:51Z

Mark Mielke wrote:
> On Thu, Oct 31, 2002 at 07:33:01AM -0700, Tom Rini wrote:
>
>>>If gcc regularly generates larger code with -Os the answer is to talk to
>>>the gcc people, not to avoid using -Os...
>>
>>It's not that it does regularly, it's that it can, and if it does, it's
>>not really a gcc bug from what I recall. So I don't think CONFIG_TINY
>>should prefer -Os over -O2 but instead we should just ask the user what
>>level of optimization they want. Remember, one of the real important
>>parts of embedded systems is flexibility.
>
>
> Not to stretch this point too long, but turning off inlined functions 'can'
> make code bigger too. It usually doesn't.
>

GCC's -finline-limit=n should help to control this.

--
Luc Van Oostenryck

Yes, madam, I am drunk.
But in the morning I will be sober and you will still be ugly.
-- Winston Churchill