Place a function on a fix adress

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

Place a function on a fix adress

1,157 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

427 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