高級語言與低級語言


高級語言與低級語言

  本文記錄Mono如何讓你工作更高效,以及如何讓軟件在無需把C/C++重寫成C#代碼的情況下擁有擴展性。

  In the past, software used to be written entirely in a single programming language. Developers had to strike a balance between high performance and having to pick a low-level language or slower execution speed but using a high level language.

  過去,軟件通常被寫用一種語言來編寫。開發者不得不在高級語言(開發高效)及低級語言(運行高效)間選擇。

  C/C++程序通常如下面左圖,腳本語言程序通常如下面右圖:

  

  Picking one or the other is a difficult choice as there are many nuances that software developers face.

  選擇哪一種語言很困難,因為有非常多的小細節。

  The engine of the application is developed in C or C++ and usually maintained and developed by the veteran members of a team, while pieces of the UI, dialogs, interaction, or non-performance critical routines are written in a higher-level scripting language.

  一種解決方案是,引擎由專門的產商用高性能的C/C++開發。非性能關鍵部分如UI、交互可由script開發。結果會是像下面這樣。

  

  A comparison of various programming languages based on their level (higher level languages execute more machine instructions for each language statement) and their degree of typing. System programming languages like C tend to be strongly typed and medium level (5-10 instructions/statement). Scripting languages like Tcl tend to be weakly typed and very high-level (100-1000 instructions per statement).

  

  程序語言由低到高總共分為5級,如下:

  

參考:http://www.mono-project.com/docs/advanced/embedding/scripting/

  

  

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM