LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compile size LabVIEW 2009 vs 2010

Just curious why the same code compiled in 2010sp1 is 37% larger than it was in 2009sp1.

 

 

File size.png

0 Kudos
Message 1 of 5
(3,209 Views)

Actually, I compute a growth of 2,628 KB, which compared against the original 4,569 KB yields nearly 58% growth!

Best,
JLS
Sixclear
0 Kudos
Message 2 of 5
(3,166 Views)

Howdy!

 

You might find this article helpful.  It talks about compiler memory usage.

 

http://digital.ni.com/public.nsf/allkb/BA4B9038D01F3C99862577CA004BE1AD?OpenDocument

 

Have a great Monday!

Michael B.
Applications Engineer
0 Kudos
Message 3 of 5
(3,130 Views)

Yes I have seen that article many times and that is why I upgraded to 2010sp1 to have the improved compiler.  The only thing I really see that can effect size would be if the compiler did not optimize my code since it was too large.  To test this I increased the “LLVMLargeVIThreshold” token to a large number and did a mass compile, but it did not make a difference in the executable size.

 

I have not noticed any performance problems, just curious of why the executable is so much larger.

0 Kudos
Message 4 of 5
(3,100 Views)

Nonecure,

 

Have you noticed any difference in performance? Is the 2010 sp1 exe running any faster? It is difficult to tell manually if you have devices installed that the LabVIEW code has to wait on and there aren't any major LabVIEW sections of your code.  If you don't have much code you can put it in this simple benchmark vi example and see how that goes. Also adding Veristand to LabVIEW will give you benchmarking capibilities.

 

From the article that bp4807 pointed out, "one of the primary focuses for the 2010 release of LabVIEW was optimizations inside the compiler to speed VI execution time." 

Optimizations come with certain tradeoffs. Check out the Compiler Optimizations wiki link. I would especially pay attention to the Common Themes section. Items like "Fewer jumps" is going to make your code run faster, but actually end up increasing the files size of the executable.

 

Another possible reason is that the code in LabVIEW 2n010 adds additional functionality ad backwards compatibility. When you compile in 2010 if you have VIs from 2009 that transferred over, the 2010 version will be compiled using the 2010 VIs and which may have different block diagrams.

 

Regards,

 

Michael M

NI Americas | AE

NI.com/support | 1-866-275-6964

0 Kudos
Message 5 of 5
(3,067 Views)