www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/24/14:33:52

Xref: news2.mv.net comp.os.msdos.djgpp:3053
From: alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de (Alexander Lehmann)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: V2 = hmmm
Date: 23 Apr 1996 22:16:54 GMT
Organization: Technische Hochschule Darmstadt
Lines: 100
Message-ID: <4ljksm$1ep4@rs18.hrz.th-darmstadt.de>
References: <Pine DOT LNX DOT 3 DOT 91 DOT 960423135047 DOT 16701A-100000 AT noether DOT nyongwa DOT montreal DOT qc DOT ca>
NNTP-Posting-Host: hp62.rbg.informatik.th-darmstadt.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

dunder (dunder AT nyongwa DOT montreal DOT qc DOT ca) wrote:

: On Tue, 23 Apr 1996, Eli Zaretskii wrote:

: > You don't have to install the library sources.  Even if you need to 
: > consult the sources occasionally, you can keep it as a ZIP file and look 
: > inside with any of the archive browsers that are available.
: > 
: > The library in v2 is larger, that's true, but it's because it includes 
: > much more functionality than v1.x did.  And btw, the library sources in 
: > v1.x also required many MBytes to be installed.

: Yeah but v2 has a lot more files :) And each files take 8k at creation! 

Well, that's not really DJGPP's problem but the brain dead MSDOS filesystem
that was designed for floppy disks and never revised. Using a NT filesystem
would help here, but I don't think this is supported under Win95.
You could try to install the compiler on a smaller HD partition (e.g.<=256MB)
then the cluster size is smaller.

: > Please post the smallest source file that triggers these messages when 
: > compiled.

: I did actually, but I had an editing problem and I guess it got lost.. so 
: here is the part which used ScreenPrimary ..

:   if(option_nb < 5)
:   {
:    int pos_y = (option_nb * 3) + 4;
:    gotoxy(1,1);
:         ScreenPrimary[pos_y * 80 + 31] =
:           ((ScreenPrimary[pos_y * 80 + 31] & (0x00FF)) | 0x7C00);
:    gotoxy(30, pos_y);
:    textattr(120);

: Making this error .. the lines 136 and 137 point to the two lines of 
: ScreenPrimary above. The lines 155 & 156 are pointing to the same kind of 
: structure ... (it worked with v1.12)

: rooedit.cc:136: invalid types `long unsigned int[int]' for array subscript
: rooedit.cc:137: invalid types `long unsigned int[int]' for array subscript
: rooedit.cc:155: invalid types `long unsigned int[int]' for array subscript
: rooedit.cc:156: invalid types `long unsigned int[int]' for array subscript

Hm, that looks odd, does this happen under C or C++?

: I also had to add a #include "c:\djgpp\src\libc\co80\sc.h" in order for 
: GCC to be able to actually recognise the variable ScreenPrimary (which 
: now point to some other structure..)

: > The only other way to run 32-bit protected-mode programs on top of 16-bit
: > real-mode DOS is to write a DOS extender.  The extender takes much more 
: > memory and has more compatibility problems, as DJGPP v1 has shown.

: Well it didn't have to have a DPMI host. Although DJGPP may come with 
: one, writing any commercial, or even shareware programs that require a 
: special driver is somehow tricky. Salvation for Windows users but DOS 
: users will bark!

It seems that all the programs using the DOS4GW extender by Rational
(Watcom 10.x) work quite well with a mandatory driver. Having to include one
additional program shouldn't be a problem if you have some kind of install
program and if you don't, write an UPPERCASE line in the readme.

The gain in needed conventional memory IMHO makes the bit of inconvenience
well worth it. Plus a stub with cwsdpmi seems to be in the works.

: > And my experience surely doesn't suggest that v2 needs much more memory. 
: > Please try to use the advice of the FAQ on system setup; there must be
: > something wrong with that if you cannot compile programs on a 8MB machine. 

: Yep, as stated I would, I read the FAQ. But the problem was with 
: Smartdrive which ate 2.5M of my memory ;) 
:  
: > What does go32-v2 print when invoked with no arguments in the DOS box?  
: > My guess is your DPMI memory settings don't give enough memory to DPMI 
: > clients.  Check the property sheet of the DOS box, under ``Memory''.  The 
: > DPMI memory should be set to 65535K, not ``Automatic'', to let DJGPP 
: > programs use as much virtual memory as your system can have.

: DPMI memory available: 5420 Kb
: DPMI swap space available: 2556 Kb

: and I setted the DOS Box to 16M which as far as I could set.

You should also check if the overall setting of virtual memory is large
enough. If e.g. there is only relativly small space on the partition the
swap space is on, Windows seems to keep a considerable bit of the space free.
(Which is ok, if you have the TMP dir also on that drive, if not you can
probably use the last byte). If the automatic swap space is too small,
try setting it from automatic to manual and set the maximum size up.


bye, Alexander

--
Alexander Lehmann,                                  |  "On the Internet,
alex AT hal DOT rhein-main DOT de  (plain, MIME, NeXT)         |   nobody knows
alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de (plain)     |   you're a dog."
<URL:http://www.student.informatik.th-darmstadt.de/~alexlehm/>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019