[cmake-developers] How to deal with assembler files

Brad King brad.king at kitware.com
Wed Mar 9 17:20:55 EST 2011


On 03/09/2011 02:27 PM, Alexander Neundorf wrote:
> On Tuesday 08 March 2011, Brad King wrote:
>>     $ icl -S main.c
>>     $ icl main.asm
>>     (errors)
>> I was able to fix the errors for (3) by replacing "." with "_" in a few
>> labels. Then the build produces HelloAsm.exe which runs as expected.
> 
> Do you consider this a solution or a hack ?

Definitely a hack.

Only a few instances of "." must be translated.  I'd rather pre-generate a
sample file for each architecture on this compiler.

> Beside that, AFAIK Microsoft cl.exe is not able to process assembler files. Is 
> that correct ?

It can generate them with /FA and /Fa"main.asm":

  http://msdn.microsoft.com/en-us/library/367y26c6%28v=VS.90%29.aspx

In order to compile them though one must use "ml.exe" or "ml64.exe":

  http://msdn.microsoft.com/en-us/library/s0ksfwcf%28v=VS.90%29.aspx

-Brad



More information about the cmake-developers mailing list