编译代码和可执行代码有什么区别? [英] What is the difference between compile code and executable code?

查看:20
本文介绍了编译代码和可执行代码有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我总是交替使用 compilebuild 这两个术语.

I always use the terms compile and build interchangeably.

这些术语究竟代表什么?

What exactly do these terms stand for?

推荐答案

编译是将源代码转化为目标代码的行为.

Compiling is the act of turning source code into object code.

链接是将目标代码与库组合成原始可执行文件的行为.

Linking is the act of combining object code with libraries into a raw executable.

构建是由编译和链接组成的序列,可能还有其他任务,如安装程序创建.

Building is the sequence composed of compiling and linking, with possibly other tasks such as installer creation.

许多编译器在编译源代码后自动处理链接步骤.

Many compilers handle the linking step automatically after compiling source code.

这篇关于编译代码和可执行代码有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆