LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

__asm__ calls in CVI

Hello,

Can anyone help me out with a suggestion on the syntax of using  __asm__ calls in CVI? Thank You!

0 Kudos
Message 1 of 4
(2,218 Views)

AFAIK the CVI compiler has never supported ASM built ins. That’s a compiler specific feature and even Microsoft did initially not support that in the 64-bit versions of Visual C(++).

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 4
(2,194 Views)

Since the compiler is CLANG, there's no reason it shouldn't be possible. See here: https://clang.llvm.org/compatibility.html#inline-asm

I've never tried though.

0 Kudos
Message 3 of 4
(2,166 Views)

It's not quite that simple. LabWindows CVI is not just a pretty UI shell around CLANG but quite a bit more. So even if CLANG supports it, and that is still the question as NI might create their own binaries with some of the options disabled, it may not ever get there because it first has to go through some CVI specific pre-processor which doesn't like it.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(2,160 Views)