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.
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.
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.