Place a function on a fix adress

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Posting new questions will be temporarily unavailable from Dec 21 to Jan 5 due to a scheduled community upgrade.

Place a function on a fix adress

1,957 Views
ajn
Contributor I
Is there a pragma or equal that I can use to place a function on a fix adress. I need to place the function _startup() on a fix adress. The processor I use is MC9S08GT32, and the copiler is Codewarrior.
 
Thanks
 
Ake
Labels (1)
0 Kudos
Reply
1 Reply

1,227 Views
fabio
Contributor IV
Hi Ake,

I think that one possible way is to create a new code segment (in the .PRM file) and use the #pragma CODE_SEG to instruct the compiler to store the function in that segment.

Best regards
0 Kudos
Reply