Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

AMIS, Optimize memory usage (Developers)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 13.05.2011, 02:39

> Under MSDOS 7, Japheth's scheme (really
> it's his loader I can't and won't take credit) does not create
> fragmentation and does remove the PSP.

It doesn't depend on the DOS version, it depends on the circumstances.

Please study the loader's source code first if you want to discuss its behaviour any further.

As I said, the PSP is not deallocated if you use the /C option.

As I said, memory fragmentation is likely(!) to occur if you use the /C option, or if you install the driver while no UMB is available. (I believe memory fragmentation is _possible_ even in other cases, but those other cases would be more contrived.)

As I said, the device driver header is left resident as unnecessary overhead. You can verify this by dumping the memory that the TSR takes up, the readable "KEYBFR#1" string there is obviously the device name in the device driver header structure. (Note that the installer sets the MCB's name to "SC", no descriptive name.)

And I'd hardly define the MCB as overhead ;-)

> Thank you for actually launching the critter, in the end :=)

Thank you for messing up my keyboard layout ;-)

---

> No, but maybe my example was somehow tongue in cheek, you know ?

Ha ha.

> The right way (as I mentioned) is to study software int 15 ...

Agreed.

> The MS example however is not worthless.

True. Not worthless. But still: a Microsoft implementation alone is not an argument that would convince me.

> MS systems programming ... usually is excellent stuff.

Not so sure here. (Off-topic anyway.)

> the mere existence of be it /one/ program which
> did not preserve the flags around its hook would make all the others'
> precaution useless. <G>

That only holds if I use that program.

---
l

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 253 users online (1 registered, 252 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum