Reply by Erich Styger June 27, 20052005-06-27
Hello,
Did you notice any message of the compiler why it was not inlined (maybe you
have information and warning messages switched off?).

In any case: you can send me your piece of code off-list and I'll have a
look.

Erich

> -----Original Message-----
> From: 68HC12@68HC... [mailto:68HC12@68HC...]
> On Behalf Of galenpatrickogrady
> Sent: Montag, 27. Juni 2005 19:34
> To: 68HC12@68HC...
> Subject: [68HC12] Inlining functions with CodeWarrior > I'm trying to implement some functions as inline with CodeWarrior 2.0.
> I've tried the #pragma INLINE method with the -Oi compiler flag was
> well as the inlne keyword and compiled as C++.
>
> In all circumstances the code is not placed inline, there is still the
> original function call. I have verified this with the debugger.
>
> I'm quite sure that I have met all of the restrictions listed in the
> manual for inline functions. I am using the banked memory model but
> this is not listed as a restriction.
>
> Has anyone else been able to implement inline functions? > Yahoo! Groups Links >




Reply by galenpatrickogrady June 27, 20052005-06-27
I'm trying to implement some functions as inline with CodeWarrior 2.0.
I've tried the #pragma INLINE method with the -Oi compiler flag was
well as the inlne keyword and compiled as C++.

In all circumstances the code is not placed inline, there is still the
original function call. I have verified this with the debugger.

I'm quite sure that I have met all of the restrictions listed in the
manual for inline functions. I am using the banked memory model but
this is not listed as a restriction.

Has anyone else been able to implement inline functions?