从源代码生成机器代码时会产生哪些文件扩展名? [英] which are file extensions produced while generating machine code from source code?

查看:114
本文介绍了从源代码生成机器代码时会产生哪些文件扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪些文件扩展名是在编译器的各个阶段生成的?

Which files extensions are generated at various phases of compiler?

推荐答案

取决于语言以及编译器/链接器组合.有些直接进入可执行文件,有些则每次通过都会生成一个文件-并且可能有很多次通过!
Depends on the language, and the compiler / linker combo. Some go straight to executable, others can produce a file per pass - and there can be a lot of passes!


您已使用Linux对其进行了标记.在Linux上,扩展根本不重要.例如,gcc通常会生成filename.out作为输出二进制文件.但是,您可以根据需要将其重命名为仅文件名.不会有任何影响.
You''ve tagged it with Linux. On Linux the extension does not matter at all. For example, gcc typically generates filename.out as the output binary. But you could rename it to just filename if you wanted. Doesn''t affect anything.


生成的文件因系统而异,甚至编译器也各不相同.您应该阅读编译器文档以获取此信息.
The files generated vary from system to system and even compiler to compiler. You should read the compiler documentation to get this information.


这篇关于从源代码生成机器代码时会产生哪些文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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