I'm working on a project that uses the Microsoft tool chain (cl.exe, ml.exe, link.exe) which I'm attempting to port to LLVM/clang as part of an open source effort. Porting the compilation of C files is straight forward enough, but figuring out how to build our many *.asm files (written in MASM syntax) has me stymied.
I'm not able to find a way for the llvm tools (or nasm for that matter) to generate object files from MASM sources. Porting the files themselves would be a lot of unplanned work that I need to avoid if at all possible, especially since many of them don't belong to us.
Any recommendations? Any obscure command line switch out there that might do the trick? I've heard about JWasm, but I haven't investigated it yet. If porting from masm to nasm is the only option, are there any guidelines that would ease the conversion?