Home | Reviews | GUIpedia | Forum | Fun500
Brandon | DOS 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-27 | 9:07 AM |
Todd | Re: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-27 | 12:23 PM |
jasonwoodland | Re:DOS Memory Usage?Future.Lib has everything, EMS, XMS. Use XMS because it is faster. | 2009-08-27 | 6:32 PM |
Brandon | Re:DOS Memory Usage?Jason that was completely irrelevant. I don't need more memory, I need less! | 2009-08-27 | 7:13 PM |
ysft | Re: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-27 | 7:43 PM |
ysft | Re: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-28 | 1:21 AM |
Brandon | Re: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-28 | 9:39 AM |
Other
2021 Brandon Cornell