为什么有些编译器使用“a.out”作为可执行文件的默认名称? [英] Why do some compilers use "a.out" as the default name for executables?

查看:279
本文介绍了为什么有些编译器使用“a.out”作为可执行文件的默认名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大多数UNIX C编译器默认将可执行文件链接到一个名为a.out的文件。为什么?这是一个书面标准还是只是事实上的标准行为?如果这些编译器只是产生一个错误消息(或使用不同的默认名称)而不是产生a.out,那么什么会打破?

Most UNIX C compilers link executables by default to a file called "a.out". Why? Is this a written standard or just de-facto standard behavior? What would break if these compilers would just produce an error message (or use a different default name) instead of producing "a.out"?

推荐答案

a.out代表汇编器输出。

我认为这证明了为什么大多数编译器都有这个名字作为默认值。
更多信息此处

a.out stands for assembler output.
I think that justifies why most compilers have this name as default. More info here.

这篇关于为什么有些编译器使用“a.out”作为可执行文件的默认名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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