Yahoo Groups archive

Lpc2000

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

Message

Calling Convention (ATPCS or APCS ?)

2006-01-17 by Boris Estudiez

Hi All,

I'm programming some assembler functions (with arm-elf-as)
and I want to call it from C (arm-elf-gcc). 

My assembly functions follows the ATPCS (ARM Thumb Procedure 
Call Standard), but I don't sure if that is the best choice.

1. Should I use ATPCS or APCS (ARM Procedure Call Standard) ?.

2. Which is more efficient (from code size/speed point of view) ?.

3. Can I use APCS with Thumb code ?.

4. Which calling convention use by default arm-elf-gcc ?. 
   Should I use -matpcs option for ATPCS ?.

5. Inline assembly is independent of calling conventions ?.

Thanks in advance.

Regards,
Boris Estudiez.-

-- 

Contacteme en:
* Mail(1): stk@...
* Mail(2): 43824@...
* Mail(3): slicetex@...
* Website: http://stk.freeshell.org
EOF

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.