Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解释和编译 #22

Open
fengzhao opened this issue Aug 20, 2021 · 0 comments
Open

解释和编译 #22

fengzhao opened this issue Aug 20, 2021 · 0 comments

Comments

@fengzhao
Copy link
Owner

c/c++/java/go/rust 是典型的编译型语言。所谓编译型语言,就是使用编译器将源代码编译成二进制机器码,然后通过机器码来运行程序。比如一个hello.c文件,首先需要将其编译成hello.exe文件。这个文件是二进制文件,其中包含了运行程序所需要的的所有底层指令。程序运行时,计算机将hello.exe加载到内存中,其中的机器码就是一系列底层指令,可以直接对应到CPU的计算,一系列的机器码即可以控制CPU作出一系列动作。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant