Hiu根本不使用这种地址定义,它只适用于“绝对”程序集。为了有一个混合的“C”ANSD“ASM”程序,你的“ASM”代码必须是可重新定位的类型,因此链接器可以加入所有的片段。在其中一个模块中定义它们,并在其他模块上声明它们为外部。
以上来自于百度翻译
以下为原文
Hi
You simply don't use that kind of address definition, its only for "absolute" assembly.
In order to have a mixed "C" ansd "ASM" program your "ASM" code must be of the relocatable type so the linker can join all the pieces.
To share variables between different source modules ("C" or "ASM") you must define them in one of the modules, and declare them as external on the other modules.
HIH
Best regards
Jorge
Hiu根本不使用这种地址定义,它只适用于“绝对”程序集。为了有一个混合的“C”ANSD“ASM”程序,你的“ASM”代码必须是可重新定位的类型,因此链接器可以加入所有的片段。在其中一个模块中定义它们,并在其他模块上声明它们为外部。
以上来自于百度翻译
以下为原文
Hi
You simply don't use that kind of address definition, its only for "absolute" assembly.
In order to have a mixed "C" ansd "ASM" program your "ASM" code must be of the relocatable type so the linker can join all the pieces.
To share variables between different source modules ("C" or "ASM") you must define them in one of the modules, and declare them as external on the other modules.
HIH
Best regards
Jorge
举报