With GCC r130284 --target=avr, a 116 byte static function that is
called twice is inlined even with -Os, effectively doubling the
function's footprint. I'd argue a function this large shouldn't even
be inlined with -O2. What is the size cutoff for inlining functions?
Can I modify it? If a code
As Shaun Jackman wrote:
With GCC r130284 --target=avr, a 116 byte static function that is
called twice is inlined even with -Os, effectively doubling the
function's footprint.
Sorry, but that's really off-topic for avr-libc-dev. Use
[EMAIL PROTECTED] instead, please.
I've already filed
Answering my own question:
The `-finline-limit=N' option allows you to adjust the inline
threshold. The documentation says the default is 600. A value of = 35
ensured that my 116 byte function was not inlined, which suggests that
a more reasonable default value on the AVR might be around 20.
I