0

I have to include some functions, that I have implemented in 8086 assembly, in my compilers project for a C-like programming language. That is, I have 6 .asm files. I have used so far llvmpy (a no longer maintained python tool, but still more complete than llvm lite). How can I include these library functions?

ddaedalus
  • 131
  • 5
  • Take a look into inline assembly: https://github.com/llvmpy/llvmpy/blob/master/test/inlineasm.py – xilpex May 08 '20 at 15:32
  • 2
    You can link the .o files of your .asm files with the .o file of your compiler using `lld` – droptop May 08 '20 at 15:43

0 Answers0