Hey, I am trying following:

assembly.asm: 
    
    
    .code
    
    asm_test PROC
        mov rax, 1
    
    
    Run

assembly.nim: 
    
    
    {.compile: "assembly.asm".}
    proc asm_test(): int {.cdecl, importc.}
    
    echo asm_test()
    
    
    Run

Compilation fails:
    
    
    C:\nim-coro>nim-0.19.0\bin\nim.exe c --cc:vcc -r assembly.nim
    Hint: used config file 'C:\nim-coro\nim-0.19.0\config\nim.cfg' [Conf]
    Hint: system [Processing]
    Hint: assembly [Processing]
    Hint:  [Link]
    "C:\Windows\system32\cmd.exe" /C ""C:\Program Files (x86)\Microsoft Visual 
Studio 14.0\VC\vcvarsall" amd64 && SET"
    cl.exe /nologo /DEBUG /Zi /F33554432 /FeC:\nim-coro\assembly.exe 
C:\Users\Administrator\nimcache\assembly_d\assembly.asm.obj 
C:\Users\Administrator\nimcache\assembly_d\assembly.c.obj 
C:\Users\Administrator\nimcache\assembly_d\stdlib_system.c.obj
    LINK : fatal error LNK1181: cannot open input file 
'C:\Users\Administrator\nimcache\assembly_d\assembly.asm.obj'
    Error: execution of an external program failed: 'vccexe.exe    
--platform:amd64 /nologo /DEBUG /Zi /F33554432  /FeC:\nim-coro\assembly.exe  
C:\Users\Administrator\nimcache\assembly_d\assembly.asm.obj 
C:\Users\Administrator\nimcache\assembly_d\assembly.c.obj 
C:\Users\Administrator\nimcache\assembly_d\stdlib_system.c.obj '

assembly.asm.obj appears to be never compiled. Am i missing something or is 
this a bug?

Reply via email to