AnsweredAssumed Answered

Inlining option in HC08 compiler definitions

Question asked by Eli Litvak on Sep 22, 2006
Latest reply on Sep 23, 2006 by Brian Espenschied

I have a function which gets a pointer to a long var. as input parameter, say foo(long* l_ptr).

long v1,v2;

// I calling to foo function twice in a such manner

But the compiler decided to generate a macro instead of function so I wasted the code: instead of 32 bytes I wasted 60. Disabling of Inlining option solved the problem.
I am wondering, why in this case, where the macro is not economic, it was generated but i have other functions, which have only one calling in all the programm, but they remained as functions ? By the way, for these functions I tried #pragma inline but it didn't work.

Thank you in advance,