Monday, October 27, 2008

什麼是Cross Compiler ?



wiki:Cross compiler

A cross compiler is a compiler capable of creating executable code for a platform other than the one on which the compiler is run. Cross compiler tools are generally found in use to generate compiles for embedded system or multiple platforms. It is a tool that one must use for a platform where it is inconvenient or impossible to compile on that platform, like microcontrollers that run with a minimal amount of memory for their own purpose. It has become more common to use this tool for paravirtualization where a system may have one or more platforms in use.


--

Building a cross compiler manually

1. Build binary utilities
2. Build bootstrap compiler without glibc
3. Build C library
4. Rebuild compiler with glibc


--

例如為了讓一般的C/C++的程式可以在不同的機器平台上執行,
所以需要cross compiler將C/C++程式編譯成不同格式的執行檔。

而要如何安裝可以參考

安裝cross compiler (toolchain)

以及

網友maxkerr寫的

Ubuntu - 建立 ARM Toolchain (Cross Compiler)

No comments:

Post a Comment

發表一下意見,互動一下唄!

LinkWithin

Related Posts Plugin for WordPress, Blogger...

Adventure Book 2.0 Headline Animator

GoogleAd

funP Android 相關文章