Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Assembly call in C

2006-05-17 by brendanmurphy37

--- In lpc2000@yahoogroups.com, 42Bastian Schick <bastian42@...> 
wrote:
>
> Woolsey Matt schrieb:
> > 
> > Keil compiler for ARM does not use APCS.
> 
> Are you sure ? How does it Keil ?
> 
> -- 
> 42Bastian
>

A quick look at the following would seem to indicate Keil does follow 
the standard:

http://www.keil.com/support/man/docs/ca/ca_ap_funcparam.htm

By the way, the "official" ARM standard for this is now:

http://www.arm.com/miscPDFs/8031.pdf

It's a fairly lengthy document. In general though, if you keep to 
having just four parameters (passed in r0 - r3), it's very 
straightforward to mix assembler an 'C'.

Brendan

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.