什麼是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)

Comments

搜尋

本月熱門文章

什麼是 OTA ?

新鮮人找工作:職場名詞解釋 AE FAE Pre-sales Post-sales

快速反應

簡介C的資料型態

3/23 草草藝術節 阮劇團 上演 < 陳文成的證明題 >

水電行介紹---台北市南港區研究院路二段30號的志興水電行---是水電行也是水電材料行

Agoda

熱門文章

[社會觀察] 一生順遂與命途乖舛

新鮮人找工作:職場名詞解釋 AE FAE Pre-sales Post-sales

日本旅行 去東京可以在哪邊買羽球相關用品?WEMBLEY/WINDSOR/梭家/Victoria/Alpen TOKYO/

中華民國2024 總統、副總統選舉公告發布 連署參選門檻28萬9667人 可以推薦候選人的政黨包括民進黨、國民黨、民眾黨和時力

什麼是 OTA ?

[HMD Global] Nokia 2020 新手機發布 首款 5G 手機 Nokia 8.3 預計夏季開賣 !

[FAANG面試] 如何準備Google Technical Program Manager (TPM) 面試

關於中國:202X年

水電行介紹---台北市南港區研究院路二段30號的志興水電行---是水電行也是水電材料行

[表特][Passion Sisters] 中信兄弟PS女孩 浮誇甜心 凱蒂 炸裂全場~ 小許瑋甯