c++assemblyinline-assemblyinline-code

Inlinig code in .asm file in 64 bit mode


I just wondered if it is possible to inline assembly functions written in an external .asm file. My application is in 64 bit mode so there is no way to use inline assembler (I am using Visual Studio C++).

Thanks in advance


Solution

  • It is possible in theory using Link Time Code Generation, see here

    When /LTCG is used to link modules compiled by using /Og, /O1, /O2, or /Ox, the following optimizations are performed:

    ...

    Not sure if it will work in practice though...