当前位置:网站首页>The difference between compiled language and interpreted language
The difference between compiled language and interpreted language
2022-07-24 05:10:00 【ahyo】
A computer can only recognize certain binary instructions , The source code must be converted to binary instructions before the program can actually run , So called binary instructions , That's machine code , yes CPU The hardware level that can be identified “ Code ”.
When to convert source code to binary instructions ? Different programming languages have different rules :
Some programming languages require that all source code must be converted into binary instructions at one time in advance , That is to generate an executable program (Windows Under the .exe), such as C Language 、C++、Golang、Pascal(Delphi)、 Assembly, etc , This programming language is called a compiler language , The conversion tool used is called a compiler .
Some programming languages can transform while executing , Convert whatever source code you need , No executable program will be generated , such as Python、JavaScript、PHP、Shell、MATLAB etc. , This programming language is called interpretive language , The conversion tool used is called an interpreter .
Simple understanding , A compiler is just a “ translation tool ”, It's similar to translating Chinese into English 、 Translate English into Russian . however , Translating source code is a complex process , It includes lexical analysis 、 Syntax analysis 、 Semantic analysis 、 performance optimization 、 There are five steps to generate an executable file , It involves complex algorithm and hardware architecture . The interpreter is similar to this 《 Compiler principle 》 A book has a deeper explanation .
Java and C# Is a semi compiled and semi interpreted language , The source code needs to be converted into an intermediate file ( Bytecode file ), Then take the intermediate file to the virtual machine for execution . Cross platform execution efficiency .
Compiler language :
- Executable programs cannot cross platforms
- Source code cannot cross platform
Explanatory language :
Compared with compiled languages , Almost all interpretive languages can cross platform ,“ Write once , Run anywhere ” It's real
边栏推荐
- How to set up an internal wiki for your enterprise?
- Drools 开发决策表
- The x-fkgom supporting the GOM engine key.lic is authorized to start
- 明星逆市入局的NFT,如何能走出独立行情?
- Why can't I log on my baidu account? Introduction to the solution of baidu account unable to log in
- Blue Bridge Cup 31 day sprint 21 day (C language)
- Hanoi problem
- Unable to delete the file prompt the solution that the file cannot be deleted because the specified file cannot be found
- Several common sorts
- Add.Eslinctrc.js under SRC for the general format of the project
猜你喜欢

mapreduce概念

Heavy! The 2022 China open source development blue book was officially released

熊市抄底指南

Using a* heuristic search to solve maze routing problem
![[postgraduate entrance examination vocabulary training camp] day 10 - capital, expand, force, adapt, depand](/img/9a/a218c46806cf286f0518a72809e084.png)
[postgraduate entrance examination vocabulary training camp] day 10 - capital, expand, force, adapt, depand

Kingbase V8R6集群安装部署案例---脚本在线一键扩容

Fiddler抓包工具的使用

Introduction to 51 single chip microcomputer (dedicated to the most understandable article for beginners)

In his early 30s, he became a doctoral director of Fudan University. Chen Siming: I want to write both codes and poems

Print leap years between 1000 and 2000
随机推荐
MapReduce介绍
1. There is a fractional sequence: 2/1, 3/2, 5/3, 8/5, 13/8,... Program to sum the first 20 items of this sequence.
MySQL transaction and its problems and isolation level
12306 the most wonderful verification code in history: normal users can easily identify the ticket grabbing software and are rejected
浅谈不可转让的声誉积分NFT SBTs面临的困境
Chapter 1 regression, classification & clustering
472-82 (22, 165, 39, sword finger offer II 078, 48. Rotate image)
[Huang ah code] Introduction to MySQL - 3. I use select *, and the boss directly rushed me home by train, but I still bought a station ticket
SHP building contour data restoration, 3D urban white film data production
Globally and locally consistent image completion paper notes
7. Find the sum of numbers between 100 and 300 that can be divided by 3.
太空可再生能源的代币化
C primer plus learning notes - 6. Arrays and pointers
Several common sorts
Unable to delete the file prompt the solution that the file cannot be deleted because the specified file cannot be found
Post SQL era: edgedb 2.0 Release Notice
Chiitoitsu(期望dp)
Memorandum 2022
NumPy 统计相关函数示例教程
Chapter 9 using image data