托管代碼的優(yōu)點(diǎn)-----外文翻譯.doc
約7頁DOC格式手機(jī)打開展開
托管代碼的優(yōu)點(diǎn)-----外文翻譯,microsoft intermediate language shares with java byte code the idea that it is a low-level language with a simple syntax (based on numeric codes rather than tex...
內(nèi)容介紹
此文檔由會員 wanli1988go 發(fā)布
Microsoft intermediate language shares with Java byte code the idea that it is a low-level language with a simple syntax (based on numeric codes rather than text), which can be very quickly translated into native machine code. Having this well-defined universal syntax for code has significant advantages.
Platform independence
First, it means that the same file containing byte code instructions can be placed on any platform; at runtime the final stage of compilation can then be easily accomplished so that the code will run on that particular platform. In other words, by compiling to IL we obtain platform independence for .NET, in much the same way as compiling to Java byte code gives Java platform independence.
You should note that the platform independence of .NET is only theoretical at present because, at the time of writing, a complete implementation of .NET is only available for Windows. However, there is a partial implementation available (see for example the Mono project, an effort to create an open source implementation of .NET, at www.go-mono.com/).
Performance improvement
Although we previously made comparisons with Java, IL is actually a bit more ambitious than Java byte code. IL is always Just-In-Time compiled (known as JIT compilation), whereas Java byte code was often inter
Microsoft中間語言與Java字節(jié)代碼共享一種理念:它們都是一種低級語言,語法很簡單(使用數(shù)字代碼,而不是文本代碼),可以非??焖俚剞D(zhuǎn)換為內(nèi)部機(jī)器碼。對于代碼來說,這種精心設(shè)計的通用語法,有很大的優(yōu)點(diǎn)。
1. 平臺無關(guān)性
首先,這意味著包含字節(jié)代碼指令的同一個文件可以放在任一個平臺中,運(yùn)行時編譯過程的最后階段可以很容易完成,這樣代碼就可以運(yùn)行在該特定的平臺上。也就是說編譯為中間語言就可以獲得.NET平臺無關(guān)性,這與編譯為Java字節(jié)代碼就會得到Java平臺無關(guān)性是一樣的。
注意.NET的平臺無關(guān)性目前只是一種可能,因?yàn)樵诰帉懕緯鴷r,.NET只能用于Windows平臺,但人們正在積極準(zhǔn)備,使它可以用于其他平臺(參見Mono項目,它用于創(chuàng)建.NET的開放源代碼的實(shí)現(xiàn),參見http://www.go-mono.com/)。
2. 提高性能
實(shí)際上,IL比Java字節(jié)代碼的作用還要大。IL總是即時編譯的(稱為JIT編譯),而Java字節(jié)代碼常常是解釋性的,Java的一個缺點(diǎn)是,在運(yùn)行應(yīng)用程序時,把Java字節(jié)代碼轉(zhuǎn)換為內(nèi)部可執(zhí)行代碼的過程會導(dǎo)致性能的損失(但在最近,Java在某些平臺上能進(jìn)行JIT編譯)。
Platform independence
First, it means that the same file containing byte code instructions can be placed on any platform; at runtime the final stage of compilation can then be easily accomplished so that the code will run on that particular platform. In other words, by compiling to IL we obtain platform independence for .NET, in much the same way as compiling to Java byte code gives Java platform independence.
You should note that the platform independence of .NET is only theoretical at present because, at the time of writing, a complete implementation of .NET is only available for Windows. However, there is a partial implementation available (see for example the Mono project, an effort to create an open source implementation of .NET, at www.go-mono.com/).
Performance improvement
Although we previously made comparisons with Java, IL is actually a bit more ambitious than Java byte code. IL is always Just-In-Time compiled (known as JIT compilation), whereas Java byte code was often inter
Microsoft中間語言與Java字節(jié)代碼共享一種理念:它們都是一種低級語言,語法很簡單(使用數(shù)字代碼,而不是文本代碼),可以非??焖俚剞D(zhuǎn)換為內(nèi)部機(jī)器碼。對于代碼來說,這種精心設(shè)計的通用語法,有很大的優(yōu)點(diǎn)。
1. 平臺無關(guān)性
首先,這意味著包含字節(jié)代碼指令的同一個文件可以放在任一個平臺中,運(yùn)行時編譯過程的最后階段可以很容易完成,這樣代碼就可以運(yùn)行在該特定的平臺上。也就是說編譯為中間語言就可以獲得.NET平臺無關(guān)性,這與編譯為Java字節(jié)代碼就會得到Java平臺無關(guān)性是一樣的。
注意.NET的平臺無關(guān)性目前只是一種可能,因?yàn)樵诰帉懕緯鴷r,.NET只能用于Windows平臺,但人們正在積極準(zhǔn)備,使它可以用于其他平臺(參見Mono項目,它用于創(chuàng)建.NET的開放源代碼的實(shí)現(xiàn),參見http://www.go-mono.com/)。
2. 提高性能
實(shí)際上,IL比Java字節(jié)代碼的作用還要大。IL總是即時編譯的(稱為JIT編譯),而Java字節(jié)代碼常常是解釋性的,Java的一個缺點(diǎn)是,在運(yùn)行應(yīng)用程序時,把Java字節(jié)代碼轉(zhuǎn)換為內(nèi)部可執(zhí)行代碼的過程會導(dǎo)致性能的損失(但在最近,Java在某些平臺上能進(jìn)行JIT編譯)。
TA們正在看...
- 四省八校高三第一次聯(lián)考卷答案---數(shù)學(xué)(理)(1).pdf
- 四種命題的教學(xué)優(yōu)秀教案設(shè)計.doc
- 四種命題間的相互關(guān)系教案.doc
- 四種類型人際風(fēng)格的特征與溝通技巧.doc
- 四種翻譯方法,十種翻譯技巧.doc
- 四級網(wǎng)絡(luò)工程師最全網(wǎng)絡(luò)技術(shù)復(fù)習(xí)資料.doc
- 四缸直列發(fā)動機(jī)缸體加工工序卡片.doc
- 四輪學(xué)習(xí)法和四步及時復(fù)習(xí)法pdf轉(zhuǎn)word.doc
- 四達(dá)公司安全生產(chǎn)風(fēng)險管理方案.doc
- 四面體的性質(zhì).doc