Inlining option in HC08 compiler definitions

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inlining option in HC08 compiler definitions

Jump to solution
2,059 Views
elil
Contributor I
Hi

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
foo(&v1);
foo(&v2);

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,
Eli.
Labels (1)
Tags (1)
0 Kudos
1 Solution
625 Views
CrasyCat
Specialist III
Hello

Here again This is a special cases, where this happens.
Please submit a service request through our on-line support web page to get our support people looking at that.

THey would need a reproducible project to investigate.

CrasyCat

View solution in original post

0 Kudos
3 Replies
626 Views
CrasyCat
Specialist III
Hello

Here again This is a special cases, where this happens.
Please submit a service request through our on-line support web page to get our support people looking at that.

THey would need a reproducible project to investigate.

CrasyCat
0 Kudos
625 Views
elil
Contributor I
Dear Sir,

Thank you for the answer. There is a problem in the last time to receive an answer from the Metrowerks(Freescale) support. At September 12 I turned with a very urgent for me question to the CodeWarrior support but have not received yet an answer. Yesterday I repeated the question but still with no result. Therefore I try to ask here.

Best Regards,
Eli.
0 Kudos
625 Views
bespenschied
Contributor III
Eli,
Where did you submit your request? I have always received a prompt response from the Freescale Support. I have found them to be VERY helpful. I use the website at http://www.freescale.com/ and I click on the 'My Freescale' link, login, and click on the 'Enter a Service Request' link under the Support section. I have it setup to email me when anyone responds.

bcde
0 Kudos