Home | Reviews | GUIpedia | Forum | Fun500


BrandonDOS Memory Usage?
I'm converting my GUI to QB7.1 but I could compile the desktop in QB4.5 or 7.1, like I said last night it uses its own codebase and doesn't use any functions that I need QB7.1 for, so I want to use whichever will make the more memory efficient executable. Does anyone have any ideas on how to figure out how much RAM a DOS EXE uses?
2009-08-279:07 AM

ToddRe:DOS Memory Usage?
It varies between executables. DOS restricts executables to 640K but if the executable can use EMS/XMS it can tap into more RAM. I don't think QB has this but in C, C++, and other languages, there's a function called "sizeof" which can determine the size of an object or variable in memory and how much memory has been allocated for it.
2009-08-2712:23 PM

jasonwoodlandRe:DOS Memory Usage?
Future.Lib has everything, EMS, XMS. Use XMS because it is faster.
2009-08-276:32 PM

BrandonRe:DOS Memory Usage?
Jason that was completely irrelevant. I don't need more memory, I need less!
2009-08-277:13 PM

ysftRe:DOS Memory Usage?
Look up the FRE function in QBasic help then try running it in qb71 and qb45. It will probably give you a good idea to which uses less RAM.
2009-08-277:43 PM

ysftRe:DOS Memory Usage?
hmmm... interesting. I happen to have QB 4.0 because it's supposoed to be faster with math, and the FRE function returns quite a bit more array and string space then QB 4.5. I don't have QB 7.1 though.
2009-08-281:21 AM

BrandonRe:DOS Memory Usage?
It would be cool if someone tested multiple versions of QB with demo apps used to test which version(s) were best with memory.
2009-08-289:39 AM

Other


2021 Brandon Cornell