GCC MIPS-32调用约定/堆栈帧定义 [英] GCC MIPS-32 Calling Conventions / Stack Frame Definition

查看:240
本文介绍了GCC MIPS-32调用约定/堆栈帧定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于MIPS-32处理器体系结构,似乎没有明确的标准化堆栈帧和C语言调用约定(注册表使用等)。也就是说,它似乎完全取决于汇编/编译器工具链来定义自己的堆栈帧和调用约定。我一直在努力寻找关于GCC编译器用于MIPS-32指令集的约定的明确参考。我特别在Cygwin上使用GCC交叉编译器,该编译器针对在eCos开源内核的嵌入式环境中使用的MIPS-32内核。



任何引用定义关于这个领域的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:

这篇关于GCC MIPS-32调用约定/堆栈帧定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆