從今天開始,每天發(fā)送一篇∠睾茫看看能堅(jiān)持多久....
哈哈哈!
Compiler(編譯器)
A software development tool that translates high-level language programs into the machine-language instructions that a particular processor can understand and execute.
把高級(jí)編程語(yǔ)言程序轉(zhuǎn)換到只有特定的處理器能了解和執(zhí)行的機(jī)器指令的一種軟件開發(fā)包暖混。
c/c++被稱為compiler(因?yàn)榫幾g成機(jī)器指令)
js/java虛擬機(jī) 應(yīng)該被稱為解釋器(interpreter,因?yàn)閳?zhí)行的是字節(jié)碼)
cross-compiler(交叉編譯器)
A compiler that runs on a different platform than the one for which it produces object code. A cross-compiler runs on a host computer and produces object code for the target.
一個(gè)運(yùn)行在不同的平臺(tái)上的編譯器缕贡,其中之一能產(chǎn)生目標(biāo)代碼。交叉編譯器在主機(jī)上運(yùn)行并且產(chǎn)生目標(biāo)機(jī)的目標(biāo)代碼。
在嵌入式領(lǐng)域晾咪,都是交叉編譯收擦。
例如我在windows上使用gcc編譯器生成arduino芯片能運(yùn)行的機(jī)器指令。這就是交叉編譯
下圖是兩本編譯工具方面的書籍谍倦,比較有用的東西