|
-
Aug 10th, 2000, 08:01 AM
#1
Thread Starter
New Member
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
-
Aug 10th, 2000, 08:35 AM
#2
Fanatic Member
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.
Iain, thats with an i by the way!
-
Aug 10th, 2000, 08:37 AM
#3
Thread Starter
New Member
Thanks alot I'll give it a little work!
Justin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|