GCC MIPS-32调用约定/堆栈帧定义 [英] GCC MIPS-32 Calling Conventions / Stack Frame Definition
问题描述
任何引用定义关于这个领域的GCC for MIPS-32的文档将不胜感激。
解决方案你说的对,这有点乱并且记录不完整。我会建议:
检查由编译器生成的反汇编代码,以检查是否与上述引用有出入。
There appears to be no definitive standardized stack frame and C language calling conventions (register usage and such) for the MIPS-32 Processor Architecture. That is, it appears to be completely up to the assembler/compiler tool chain to define their own stack frame and calling conventions. I've struggled to find a definitive reference of what conventions the GCC compiler uses for MIPS-32 instruction set. I'm specially using GCC cross-compiler on Cygwin that targets a MIPS-32 core being used in an embedded environment on the eCos open source kernel.
Any references to definitive documentation about GCC for MIPS-32 in this area would be appreciated.
You are right, this is a bit of a mess and is poorly documented. I would recommend:
- http://math-atlas.sourceforge.net/devel/assembly/mipsabi32.pdf
- "See MIPS Run" by Dominic Sweetman
- Examining disassembled code generated by the compiler to check for discrepancies with the above references.
这篇关于GCC MIPS-32调用约定/堆栈帧定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!