Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NoGraph.obj ???

Status
Not open for further replies.

BobTheMad

Programmer
Jun 11, 1999
81
US
I found a line in the QB Help files that states...

'-=-=-=-=- BEGIN QUOTE -=-=-=-=-
If you do not need graphics in your custom run-time module (because the programs use screen mode 0 only), you can save 15K by creating the run-time module with NOGRAPH.OBJ.
'-=-=-=-=- END QUOTE -=-=-=-=-

I have tried linking my programs with this .obj, but have not noticed any savings (either memory or .exe size).

The prospect of saving 15k of space is something that I am VERY interested in, so any help will be appreciated.

Thanx
Thought for the day: Beware of Gods who cannot laugh...
 
Please specify exactly where in the help file you found this. It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end.
 
Under the "Screen" QB command, and inside the "Details" Thought for the day: Beware of Gods who cannot laugh...
 
Thanks, I'll take a look.

It's better to have two heads to solve a problem from different angles than to have tunnel vision to a dead end.
 
QB packs its executables with EXEPACK, if you compile from the IDE. I'm guessing that you might not be enabling that option when compiling from the command line, so you're losing the benefit of 15KB less code. Try running UPX to compress your executable. If it significantly compresses, then maybe EXEPACK wasn't used.
 
Well then I guess I am confused now... is this 15k of .exe space (making the file smaller), or is this a 15k saving of space in memory? I am hoping it is the latter possibility, 'cause my program is getting too big... Thought for the day: Beware of Gods who cannot laugh...
 
I think the 15K savings is for the disk. Memory reserved for QB code won't increase, as far as I know. It may give more space for heap data, however.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top