Posts: 3
Threads: 2
Joined: Sep 2005
My compilator of QB 45 haven`t enough memory.
How I compile 200 kB or larger .exe file?
Sorry for grammatical errors.
orry for grammatical errors.
break your code into modules...
or use freebasic
Posts: 1,956
Threads: 65
Joined: Jun 2003
Quote:My compilator of QB 45 haven`t enough memory.
How I compile 200 kB or larger .exe file?
Sorry for grammatical errors.
Tomas,
I don't understand your question.
Is 200 KB the size of your .bas file?
It can't be the size of your .exe because you said you can't compile the program, right?
From my experience, 80 KB is a very large .bas file having over 2000 lines of code excluding comments. The Quickbasic manual mentions a maximum of 64 KB for procedures or modules, but this is not clear.
What does your 200 KB program do? You might be able to convert a lot of the code to subroutines, subs, or functions, which will cut down the size.
I had thought of suggesting that you complie the program from the MSDOS command-line using BC and LINK, but it probably won't be able to handle that 200 KB size of a source program either.
Please give us the above requested information.
*****
Posts: 2,404
Threads: 153
Joined: Jan 2005
Hmm,.. yeah,. the last time I ended up with a 200+ kb .bas, I went back later after learing a lot, I could have at least sliced it to 70- kb.... but I been to lazy to do it....
To support what Moneo suggested,.. If you have things you do over and over, you can make that into 1 sub and just call it when you need it. That leaves it coded only once,. versus 100 times (if you used it 100 times).... :wink:
Also,. you can make external files that are called in to do different tasks,.. that helps a lot also,...
Kevin (
x.t.r.GRAPHICS)
Posts: 1,439
Threads: 15
Joined: Apr 2003
na_th_an has written an excellent tutorial about compiling large executables:
http://www.ojodepez-fanzine.net/network/...-exes.html
It's an excellent read.
Posts: 3
Threads: 2
Joined: Sep 2005
Quote:na_th_an has written an excellent tutorial about compiling large executables:
http://www.ojodepez-fanzine.net/network/...-exes.html
It's an excellent read.
Thank you very much!!!
orry for grammatical errors.