Mail Archives: djgpp/1993/03/17/08:34:08
I have a new DPMI information program! This one is written in
assembler and actually goes into protected mode, so it's a good
example of how to *use* DPMI. Also, some information about the DPMI
host is only available from protected mode. Source and binary
included, as well as info from Borland and Windows.
After re-reading my DPMI spec, I've decided that it's possible to use
djgpp to develop programs that will run under Windows (or any 32-bit
DPMI 0.9 host), with the following caveats:
* Stack size will have to be FIXED. Probably an extra go32 variable
will be needed, or maybe use the Borland method of having a "__stklen"
variable that crt0.o uses to set up the stack. Heap will follow the
stack so sbrk can resize the segment we're in.
* graphics, 0-1M map, and emu387 are OUT. Emu387 could be made into a
regular .o and linked in, though. Basically, anything that requires a
linear 4G address space and paging will NOT work with DPMI 0.9.
* A special link flag will be required.
* Changes to go32 are too much for 1.10 - it will have to wait for
2.0.
* Other stuff I don't know about.
DJ
----
Microsoft Windows 3.1:
DPMI Information Program, written by DJ Delorie
DPMI v0.90, 32 bit apps, 80386 CPU
virtual memory supported
Largest available = 18,317,312 bytes
Max unlocked = 18,317,312 bytes
Max locked = 4,423,680 bytes
Linear space size = 20,168,704 bytes
Total unlocked = 4,452,352 bytes
Total free = 3,559,424 bytes
Total physical = 5,894,144 bytes
Free linear = 18,325,504 bytes
Paging file = 10,055,680 bytes
Borland DPMIRES:
DPMI Information Program, written by DJ Delorie
DPMI v0.90, 16 bit apps, 80386 CPU
no virtual memory supported
Largest available = 5,126,576 bytes
Max unlocked = N/A bytes
Max locked = N/A bytes
Linear space size = N/A bytes
Total unlocked = N/A bytes
Total free = N/A bytes
Total physical = N/A bytes
Free linear = N/A bytes
Paging file = N/A bytes
begin 777 dpmii.zip
M4$L#! H !@ & (RY<!JU10\C'@< .P7 ) 1%!-24DN05--80I[!P8;
M!KL,2P,)!PL)"PD'%@<(!@4&!P8%-@<6%PL*!@@*"P4&%00&%P4*" 4&%08*
M)08(!Q@*!PH("P<+!"4$)00*!@0%% 4)- <&%PD:*_S\_/O[^PP++ LL"SP+
M+"NL# $B(Q05-C=HB9K;/ 4&$B,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