Place a function on a fix adress

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Place a function on a fix adress

1,080件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
1 返信

350件の閲覧回数
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 件の賞賛
返信