Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How I compile 200 kB or larger .exe file?
#1
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.
Reply
#2
break your code into modules...

or use freebasic
Reply
#3
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.
*****
Reply
#4
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)

[Image: 11895-r.png]
Reply
#5
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. Smile
Reply
#6
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. Smile

Thank you very much!!! Big Grin
orry for grammatical errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)