- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My Google-fu tells me to search for "arm asm gcc", and delivers some starting points:
- http://www.ethernut.de/en/documents/arm-inline-asm.html
- http://www.devrs.com/gba/files/asmc.txt
- http://www.coranac.com/tonc/text/asm.htm
- http://omappedia.org/wiki/Writing_ARM_Assembly
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My Google-fu tells me to search for "arm asm gcc", and delivers some starting points:
- http://www.ethernut.de/en/documents/arm-inline-asm.html
- http://www.devrs.com/gba/files/asmc.txt
- http://www.coranac.com/tonc/text/asm.htm
- http://omappedia.org/wiki/Writing_ARM_Assembly
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanx, enough to read for the weekend!
Bob