So straight to my question: how can I compile my ASM files with a 32-bit ASM compiler, include it in my 64-bit project and access the compiled code by using the ASM file's function names?
If it is a bit unclear, I can elaborate:
I'm converting a project of mine from 32-bit to 64-bit and I ran into a technical problem. My project compiles an ASM file and use the compiled binary as input for it's usage.
When my project was 32-bit, it was quite easy. I included the ASM files in the project and added a build rule to compile them with Microsoft Macro Assembler
- then I could access the compiled code from my 32-bit project by exported each function I wanted to access from the ASM to a .h
header file and access it using the function name (I was able to do so because it was compiled to obj and the linker knew the symbols because I exported the prototypes to a .h
file).
Now, I need to convert this code to 64-bit, but I still need the ASM to be compiled as 32-bit code and still be able to do the same thing (accessing the compiled 32-bit code from my 64-bit program). However, when I try to compile it, it obviously doesn't recognize the instructions because now the whole project is being compiled as 64-bit code.
Thanks in advance.
.ASM
file, and I still need the.ASM
file to be included in my project but be compiled as 32-bit codeml
instead ofml64
should do.