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, 01:45

> > Anyway, if your goal is to optimize the memory usage of this driver:
> ...
> All done (credit Japheth), no fragmentation nor PSP remains in any case.

I downloaded your program while I wrote that post and verified all of my points. (I also discarded one point I had in mind at first that didn't apply here.) Assuming you didn't silently update the program just now, they still all apply.

> ... flags image on the stack ...

Enough said.

> For anybody who wouldn't believe we do not need to pass the flags along the
> chain as we received "from upwards", while writing this I've been checking
> a famous int 15 "hooker", MS-Smartdrv (which is willing to catch the "3
> finger salute" if you wonder why it is hooking int 15). Well, MS got it
> right, it doesn't lose time in needlessly preserving the flags.

Yes. Right. Because if Microsoft does something some way, then it absolutely must be right to do it that way. (In case you can't tell, this is sarcasm. Independent of whether you should or shouldn't save the flags separately, I do not think reasoning with Microsoft's implementation is necessarily good.)

> Enough, sorry for the digression - I may've had a little wine too much

Sober up please.

---
l

 

Complete thread:

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