“组装” 与“汇编器”相比

发布于 2024-07-27 17:25:31 字数 126 浏览 3 评论 0原文

我被告知“汇编”是您在文件中编写的内容,让您的“汇编器”将其转换为二进制代码。

但我看到这两个术语在各种作品中混合搭配。 我什至听说你编写了“汇编器”,然后“汇编器”使其可执行。

正确的用词是什么?

I've been taught that "assembly" is what you write in your files, to have your "assembler" convert it into binary code.

But I see these two terms mixed and matched in various works. I've even heard that you write "assembler", after which an "assemblator" makes it executable.

What's the right words to use?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

昵称有卵用 2024-08-03 17:25:31

实际上,这种语言被称为“汇编语言”,而将其转换为机器代码的工具就是“汇编器”。

有关维基百科的更多信息:http://en.wikipedia.org/wiki/Assembly_language

Actually, the language is called "Assembly Language", and the tool to convert it to machine code is the "Assembler".

More info on Wikipedia: http://en.wikipedia.org/wiki/Assembly_language

无所的.畏惧 2024-08-03 17:25:31

程序集是机器可执行代码中的一段代码/可执行文件。 这可能是一个 obj、exe、dll……它是编译的结果。

汇编器是将代码编译成机器可执行代码的“编译器”。 该代码是用“汇编语言”语言编写的。 汇编语言在普通英语中通常被称为Assembler。

汇编器似乎是一个创造性的词,它的诞生是为了减少因误用其他术语或外语术语而造成的混乱(参见其他答案)。

The assembly is a piece of code/executable that is in machine executable code. This might be an obj, exe, dll, ... It is the result of a compile.

The assembler is the "compiler" that compiles code into machine executable code. This code has been written in the language "Assembly Language". Assembly language in common English is often called Assembler.

Assemblator seems to be a creative word, born out of necessity to reduce confusion caused by missusing the other terms or a term in a foreign language (see other answers).

旧人九事 2024-08-03 17:25:31

语言的目的是交流。

如果人们说话并且其他人理解他们的意思,那么他们使用的是正确的术语。

我们有规则让事情更容易理解,但在我看来,如果你说最适合你的话,让其他人说最适合他们的话,而你们都明白你们的意思,那么一切都会很顺利。

就其价值而言,我更喜欢编写“汇编”并用“汇编器”对其进行汇编。 我认为“汇编器”有一天应该成为当今的流行词,每个人都应该尽可能多地使用它。

The purpose of language is to communicate.

If people say things, and other people understand them, they are using the correct terms.

We have rules to make it easier to understand, but in my opinion, if you say what sounds best for you, and let other people say what sounds best for them, and you all understand what you all mean, then everything will be peachy.

For what it's worth, I prefer to write "assembly" and assemble it with an "assembler." I think "assemblator" should be the word of the day someday, and everyone should try to use it as often as possible.

时光礼记 2024-08-03 17:25:31

这可能是(人类)语言问题 - 瑞典语中的“汇编器”一词似乎是“汇编器“...

另请参阅:http://sv.wikipedia.org/wiki/Assemblator

This might be a (human) language issue - the Swedish word for "assembler" appears to be "assemblator"...

See also: http://sv.wikipedia.org/wiki/Assemblator

他不在意 2024-08-03 17:25:31

老实说,我不知道是否有一个“标准”术语可以适当地区分所有这些概念。 (例如:如果我说“ASM”,我在说什么?)

我可以给你我的定义,如果这有帮助的话。

机器代码

这是汇编器或编译器的编译输出。

汇编

这是人类可读的机器代码形式。 (或者,我们所知的机器代码。)

我有时使用术语“程序集”来代替机器代码,因为它暗示我不会实际读取机器代码,而是读取程序集。

汇编语言

这是指特定的机器代码语言,例如 x86 汇编语言。

Assembler

这是一个类似 MASM\FASM 的工具,用于将源代码编译成机器代码。

汇编语言

这是任何给定汇编程序使用的语言。

我认为这与汇编语言不同,因为汇编程序可以添加自己的语法糖,而底层汇编语言中不存在这些语法糖。 (高级函数、宏等。)

I honestly don't know if there is a 'standard' terminology that suitably differentiates all these concepts. (Example: If I say "ASM" what am I talking about?)

I can give you my definitions, if that helps any.

Machine Code

This is the compiled output of an assembler or compiler.

Assembly

This is the human readable form of machine code. (Or, machine code as we know it.)

I sometimes use the term assembly in place of machine code because it's implied that I'm not going to actually read the machine code, but rather the assembly.

Assembly Language

This refers to a specific machine code language such as x86 assembly.

Assembler

This is a tool like MASM\FASM used for compiling source code into machine code.

Assembler Language

This is the language used by any given assembler.

I view this as being different from assembly language because assemblers can add their own syntactic sugar which does not exist in the underlying assembly language. (High level functions, macros, etc,.)

日记撕了你也走了 2024-08-03 17:25:31

你知道,我在 70 年代开始编写代码。 我们总是互换两者,但我们也总是知道我们在说什么。 我一直偏爱被称为汇编语言,因为那是我长大的语言。 如果今天的小孩子想称之为“集会”,或者“我工作没那么努力!”,那么就给他们更多的权力。 反正他们不听。

You know, I started writing code in the 70s. We always interchanged the two, but also we always knew what we were talking about. I have always been partial to the language being called assembler just because that's what I grew up on. If young kids today want to call it "assembly", or "I-ain't-working-that-hard!", then more power to them. They don't listen, anyway.

全部不再 2024-08-03 17:25:31

我猜这些术语的起源可以追溯到汇编的经典字典定义:“实现某个目的的机器指令的汇编”,这可能就是计算先驱对一小群计算机的看法。机器指令。 那么“汇编器”是一种接受单独的机器指令并将它们组合成“程序集”的设备。

I'm guessing the origin of these terms goes back to the classic dictionary defintion of assembly: "an assembly of machine instructions to achieve a purpose" which is probably how the computing pioneers thought of a small group of machine instructions. Then an "assembler" is a device that takes individual machine instructions an puts them together into an "assembly".

橘味果▽酱 2024-08-03 17:25:31

虽然将 ASM 文件转换为 PRG 或其他任何内容的代码有时被称为编译器,但这似乎是错误的,它被称为汇编器,但我不太确定汇编器,至少我以前从未听说过。 Wikipedia 说汇编语言和汇编语言都可以,我个人称之为汇编语言,因为我更频繁地看到这一点,至少在德国网站上。 它还说“转换过程称为汇编,就像汇编源代码一样。”。 我希望这有帮助。

While the code that converts ASM files to PRG or whatever is sometimes referred to as a compiler, that seems to be wrong, it's called assembler, but I'm not quite sure about assemblator, at least I never heard that before. Wikipedia says that assembly language and assembler language are both fine, I personally call it assembler language because I see that more often, at least on german websites. It also says "The conversion process is referred to as assembly, as in assembling the source code. ". I hope that helped.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文