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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 08:02:52  来源:igfitidea点击:

How to cross-compile for MIPS?

cmipscross-compilingembedded-linuxtoolchain

提问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

它有嵌入式 Linux,我可以用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 构建为交叉编译器的指令。