C语言 如何交叉编译MIPS?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5291190/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to cross-compile for MIPS?
提问by davispuh
I have a DVB receiver (set-top box) similar like Dreamboxand it has MIPS cpu
我有一个类似于Dreambox的 DVB 接收器(机顶盒),它有 MIPS cpu
It has embedded Linuxand I can connect to it with telnet
Question is how to compile simple "Hello World" application in C? Where to get toolchain, SDK?
问题是如何用C编译简单的“ Hello World”应用程序?从哪里获得工具链、SDK?
采纳答案by MannyNS
You should use Codescape SDK.
您应该使用Codescape SDK。
回答by Dr. Snoopy
http://www.linux-mips.org/wiki/Toolchains
http://www.linux-mips.org/wiki/Toolchains
There you have some prebuilt cross compilers, or the instruction to build GCC as a cross compiler.
那里有一些预构建的交叉编译器,或者将 GCC 构建为交叉编译器的指令。

