AnsweredAssumed Answered

HC12: Unable to inline from other source files

Question asked by Linus Falk on Sep 7, 2006
Latest reply on Sep 7, 2006 by Linus Falk
I noticed today that when calling

// foo.c
#pragma INLINE
void foo(void){xxx}

from

// bar.c
void bar(void)
{
foo();
}

it's not inlined.
When calling INLINE functions from the same source file, it works.

Am I doing something wrong or is it not implemented?

HCS12 with CW 3.1 & 4.5 with build option -Oi

/Thanks

Message Edited by CrasyCat on 2007-04-13 02:27 PM

Outcomes