Parameter passing from c to assembly code

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

Parameter passing from c to assembly code

1,919件の閲覧回数
SreejithN
Contributor I

Have one requirement to pass one parameter  from c to Assembly code.  And it  has to be done by using stack. Kindly provide one example code to pass the parameter from c to a assembly function.

0 件の賞賛
返信
3 返答(返信)

1,894件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Can you elaborate?

What it should do exactly?

What S32K part and compiler do you use?

 

Regards,

Daniel

0 件の賞賛
返信

1,868件の閲覧回数
SreejithN
Contributor I

The project is build and complied in IAR.

The requirement is to pass one Parameter form C file to assembly function. The c file has to call the assembly function with one variable. How the assembly cod can access this parameter?

0 件の賞賛
返信

1,858件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信