Parameter passing from c to assembly code

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

Parameter passing from c to assembly code

289 Views
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 Kudos
3 Replies

264 Views
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 Kudos

238 Views
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 Kudos

228 Views
danielmartynek
NXP TechSupport
NXP TechSupport
0 Kudos