cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Esteemed Contributor II

I desperately need some docs about interfacing the GNU-C with ARM assembly, register usage, linkage conventions etc. The docs I could found on Cypress's website including the PSoC5 Register Usage TRM are rather informative but even do not touch my subjects at all.

   

Who may help?

   

 

   

Bob

0 Likes
Reply
1 Solution
Honored Contributor II

My Google-fu tells me to search for "arm asm gcc", and delivers some starting points:

       

To answer your question: the first 4 parameters go to r0-r3, 4 or more go to the stack. The result comes back in r0.

View solution in original post

0 Likes
Reply
4 Replies
Anonymous
Not applicable

Hi Bob,

   

You can use the following link in Creator for GCC information: Help -> Documentation -> GCC

   

For more details on ARM you can visit the ARM website: http://infocenter.arm.com/help/index.jsp

   

 

   

Regards, Aniruddha

0 Likes
Reply
Esteemed Contributor II

Thank you, I actually already did both, but there is a missing link: the connection between ARM asm and GCC.

   

As: for example: when I have a function with parameters, where do they go, where is the result given bacik, how are vars allocated and a handfull questions more.

   

 

   

Bob

0 Likes
Reply
Honored Contributor II

My Google-fu tells me to search for "arm asm gcc", and delivers some starting points:

       

To answer your question: the first 4 parameters go to r0-r3, 4 or more go to the stack. The result comes back in r0.

View solution in original post

0 Likes
Reply
Esteemed Contributor II

Thanx, enough to read for the weekend!

   

 

   

Bob

0 Likes
Reply