 nonecure
		
			nonecure
		
		
		
		
		
		
		
		
	
			07-23-2011 08:07 AM
Just curious why the same code compiled in 2010sp1 is 37% larger than it was in 2009sp1.
 JLS
		
			JLS
		
		
		
		
		
		
		
		
	
			07-25-2011 10:05 AM
Actually, I compute a growth of 2,628 KB, which compared against the original 4,569 KB yields nearly 58% growth!
08-01-2011 03:58 PM
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!
08-02-2011 07:47 AM
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.
 MichaelAE
		
			MichaelAE
		
		
		
		
		
		
		
		
	
			08-03-2011 12:27 PM
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