[英]What does “. =” mean in GAS
I'm examining the GNU GRUB source code and in /grub-core/boot/i386/pc/*.S
files, there are a lot of .=
markers. 我正在检查GNU GRUB源代码,在
/grub-core/boot/i386/pc/*.S
文件中,有很多.=
标记。 Here is one from /grub-core/boot/i386/pc/boot.S
file (line 409-414): 这是
/grub-core/boot/i386/pc/boot.S
文件(第409-414行)中的一个:
/*
* Windows NT breaks compatibility by embedding a magic
* number here.
*/
. = _start + GRUB_BOOT_MACHINE_WINDOWS_NT_MAGIC
What I want to know is what the .=
means. 我想知道的是
.=
含义。
In GAS, and perhaps in other assemblers as well, the special symbol .
在GAS中,也许在其他汇编程序中,也使用特殊符号
.
refers to the current address that the assembler will assemble into. 指的是汇编器将要汇编到的当前地址。 A statement such as the one above controls where the bytes for the following code will get assembled.
诸如上述语句之类的语句控制将汇编以下代码的字节。
The documentation for the .
的文档
.
operator is here . 操作员在这里 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.