LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can CVI be optimized to match the speed of standard C?

Can CVI be optimized to create exe's that run as fast as a program generated
by normal C compiler? Or is the overhead of using the runtime and the CVI
compiler prevent this? I have been doing some benchmarking with various C
compilers and CVI is by far the slowest.


0 Kudos
Message 1 of 3
(3,086 Views)
CVI does support external compilers, and they typically include optimization - something that the CVI compiler does not.  Check out Options >> Build Options and then "Compiler for Release Configuration" in the lower right.  That screen also has a "Help" button for the relevant online help.  I believe that several optimizing C compilers are a free download.
 
Hope this helps.
 
--Ian
 
0 Kudos
Message 2 of 3
(3,052 Views)
Yes, I have experienced this. and the compiled EXE file size is another probelm: if you use a .fp file, the size of the EXE file will increase a 10 --500K, even you only use one function of .fp. I don't know why NI don't  optimized.
0 Kudos
Message 3 of 3
(3,020 Views)