如果在CAccount类的定义前加上pack(1)编译指令(compiler directive),并在m_dblBalance成员前加上一个一字节的字符变量,那么m_dblBalance的地址变成了0x12fecd,不再64位对齐了。
基于236个网页-相关网页
... 无效的编译指令 Invalid compiler directive 编译指令[命令 compilation order 注释与编译指令的区别与联系 Comments and compiler directives ...
基于14个网页-相关网页
·2,447,543篇论文数据,部分数据来源于NoteExpress
这个编译指令抑制入口代码的产生,有益于内嵌汇编函数。
This pragma suppresses the generation of entry code and is useful for inline assembler functions.
为了实现这种映射,您可以在访问寄存器的位置包括条件编译#指令。
To achieve this mapping, you may include conditional compilation #ifdef in places where you access the registers.
编译器极有可能把上述赋值语句编译成一条机器指令。
The compiler will after all very likely compile the above assignment into a single machine instruction.
It's a little more involved on a PC but it's all free, the software you can download, and Linux in similar operating systems generally come with a compiler or you run a simple command to get it.
在PC机上有点复杂,但是它是免费的,你一般下载的软件,类似Linux的操作系统等等通常都需要,一个编译器,或者你可以运行一些简单的指令来获取。
应用推荐