我该如何在ASM源文件中在编译时检测目标架构是否为I386或AMD64?
我正在使用masm(ml.exe)/masm64(ml64.exe)来汇编file32.asm和file64.asm。很希望能够创建一个单独的文件file.asm,它应该包含file32.asm或file64.asm,具体取决于架构。理想情况下,我希望能够编写类似以下代码:
IFDEF amd64 include file64.asm ELSE include file32.asm ENDIF
同时,如果需要,我可以使用不同的命令行选项运行ml.exe和ml64.exe。
谢谢!
我正在使用masm(ml.exe)/masm64(ml64.exe)来汇编file32.asm和file64.asm。很希望能够创建一个单独的文件file.asm,它应该包含file32.asm或file64.asm,具体取决于架构。理想情况下,我希望能够编写类似以下代码:
IFDEF amd64 include file64.asm ELSE include file32.asm ENDIF
同时,如果需要,我可以使用不同的命令行选项运行ml.exe和ml64.exe。
谢谢!