Parameter passing from c to assembly code

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Parameter passing from c to assembly code

1,906 次查看
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,881 次查看
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,855 次查看
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,845 次查看
danielmartynek
NXP TechSupport
NXP TechSupport
0 项奖励
回复