-
Hey everyone,
Does anyone know any tips to save space when I am writing my program to an .exe file. I want to make the .exe as small as possible so it can run faster and fit on one disk. Does the amount of spaces between lines of code matter? Any other ideas?
Thanks in advance,
Justin
-
Lines and Spaces (White Space), Comments, etc are all ignored by the compiler. The length of variable names makes no Difference either.
You can turn on the optimisation for samll code in the "Project Properties" :> "Compile" tab.
Other than that it is reducing the amount of code you have. If you have a lot of code that is the same, or very similar, then consider writing a sub or function that will replace the code.
If you have an icons in your program, they all go in the exe as well. Use as few as possible. Convert any embedded BMP's, into Jpeg's, or GIF's.
And Good luck. :)
-
Thanks alot I'll give it a little work!
Justin