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