| mbbrutman Washington, USA, 06.08.2026, 07:29 (edited by mbbrutman, 07.08.2026, 01:08) |
Using overlays to hide initialization code (Developers) |
Please forgive me in advance if I don't have the right terminology or vocabulary ... |
| mceric Germany, 06.08.2026, 10:27 @ mbbrutman |
Using overlays to hide initialization code |
Hi Mike! If your code is too large for 640k RAM, you could use overlays and some older compilers have built-in support for those, but 32-bit compilers and DOS extenders would probably be a lot easier. You can use gigabytes of RAM with those, problem solved --- |
| Laaca Czech republic, 06.08.2026, 11:14 @ mbbrutman |
Using overlays to hide initialization code |
I believe that exactly the same thing I do in my tool AcpiTool. Large mass of pascal source which do a lot of stuff like examining the ACPI tables. Then it accordingly modifies one of its procedures which remain in memory as TSR and rest of the program is removed from memory. I thing it should be possibke to do in OpenWatcom too. --- |
| Japheth Germany (South), 06.08.2026, 21:36 @ mbbrutman |
Using overlays to hide initialization code |
> ... or would somebody who wanted to do that have to roll --- |
| Oso2k 06.08.2026, 22:07 @ mbbrutman |
Using overlays to hide initialization code |
> TSRs and device drivers have a simple approach to this - just put the |
| bretjohn Rio Rancho, NM, 06.08.2026, 23:14 @ mbbrutman |
Using overlays to hide initialization code |
> TSRs and device drivers have a simple approach to this - just put the |
| marcov 06.08.2026, 23:17 @ mbbrutman |
Using overlays to hide initialization code |
> The web server though is a giant mass of C code. So I figured I'd try a |
| mbbrutman Washington, USA, 07.08.2026, 01:15 @ mbbrutman |
Using overlays to hide initialization code |
Eeek, I posted in "Announcements!" I fixed that. |
| bretjohn Rio Rancho, NM, 07.08.2026, 02:02 @ mbbrutman |
Using overlays to hide initialization code |
The other thing I've done is use the initialization code (and PSP which isn't needed after a TSR is installed) memory for stack(s) and/or heap(s), even in TSRs. As Japheth noted, when you're using an HLL you don't have a lot of control over where things go in memory, but with ASM you have almost total control over everything (which can also get you into trouble). |
| marcov 07.08.2026, 10:06 @ bretjohn |
Using overlays to hide initialization code |
> Your issue (leaving unused/unwanted code/data in memory) is a problem with |
Thread view