nigelibrown
Member
Has anyone experience in using AAPCS to call assembler functions from C/C++?
Calling routines with four or fewer parametrs seems simple, I did find mention of calling from C++ then a1 = this, so you would maybe need to wrap calls to be able to call them from both?
My problem is calling assembler routines from C/C++ with 5 parameters. I thought it may be as simple as pulling the last param of the stack! But it seemes to be more involved than this?
I have looked through the ARM documents but am not able to find an example or good explanation of using AAPCS, can anyone help please.
Calling routines with four or fewer parametrs seems simple, I did find mention of calling from C++ then a1 = this, so you would maybe need to wrap calls to be able to call them from both?
My problem is calling assembler routines from C/C++ with 5 parameters. I thought it may be as simple as pulling the last param of the stack! But it seemes to be more involved than this?
I have looked through the ARM documents but am not able to find an example or good explanation of using AAPCS, can anyone help please.