www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/08/29/01:03:23

Date: Fri, 28 Aug 92 22:22:10 -0600
From: jan kok <kok AT CS DOT ColoState DOT EDU>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: setting gcc environment

Perhaps this discussion was due in part to the poor documentation (at least
in two DOS books that I checked) of how to increase environment space.
Adding "shell=c:/command.sys /e:600 /p" to CONFIG.SYS works for me.
Michael Kauffmans suggestion to add "comspec=c:\command.sys /p /e:1024"
did NOT work for me.  I got "Unrecognized command in CONFIG.SYS".

IMHO the existing mechanisms for setting the environment are adequate.
Just setting the vars in AUTOEXEC.BAT is straightforward, and it's pretty
obvious how to do the same in a separate batch file, if desired.  For
those who really don't like messy environments, editing the spec file
seems like a reasonable alternative.

I could live with doing it either way.  I would just hope that whichever
method becomes the "official" method is well documented in the README file.
There may be some wonderful documentation in gcc.tex, but it takes some
work to find a TeX package that will work on a PC, figure out how to use
TeX, print out the manual, and read it.  With that in mind I offer the
following changes to README, assuming that just setting enviroment vars
remains the preferred method.

Cheers,
- Jan

*** readme.orig	Thu Aug 27 12:47:11 1992
--- readme	Fri Aug 28 21:33:53 1992
***************
*** 101,108 ****
  
  * Un-zip the appropriate zipfiles in the install directory.
!     C:\DJGPP> pkunzip -d djdev107.zip
      C:\DJGPP> pkunzip -d djgas138.zip
      C:\DJGPP> pkunzip -d djgcc222.zip
  
  * Add the following lines to C:\AUTOEXEC.BAT:
      set COMPILER_PATH=c:/djgpp/bin
--- 101,119 ----
  
  * Un-zip the appropriate zipfiles in the install directory.
!     C:\DJGPP> pkunzip -d djdev108.zip
      C:\DJGPP> pkunzip -d djgas138.zip
      C:\DJGPP> pkunzip -d djgcc222.zip
  
+ * Add the following lines to C:\CONFIG.SYS file (or edit existing
+ files= and shell= lines as appropriate).  The files= line prevents "too many
+ open files" errors when compiling, and the shell= line prevents "Out of
+ environment space" errors when setting lots of environment variables.
+ 
+     files=15
+     shell=c:\command.com /e:600 /p
+ 
+ The values 15 and 600 are close to minimal.  You may want to increase them
+ to provide a little more margin.
+ 
  * Add the following lines to C:\AUTOEXEC.BAT:
      set COMPILER_PATH=c:/djgpp/bin
***************
*** 109,132 ****
      set C_INCLUDE_PATH=c:/djgpp/include
      set CPLUS_INCLUDE_PATH=c:/djgpp/cplusinc;c:/djgpp/include
      set OBJC_INCLUDE_PATH=c:/djgpp/include
      set OBJCPLUS_INCLUDE_PATH=c:/djgpp/include
      set LIBRARY_PATH=c:/djgpp/lib
      set TMPDIR=c:/tmp
!              ^^^ this is where gcc's temp files go
      set GO32TMP=c:/tmp
!                 ^^^ this is where your paging file goes
      set GO32=ansi driver c:/djgpp/drivers/SOMETHING.grd gw 1024 gh 768
                           ^^^ whatever driver works with your VGA (optional)
      set BISON_SIMPLE=c:/djgpp/lib/bison.simple
      set BISON_HAIRY=c:/djgpp/lib/bison.hairy
      set FLEX_SKELETON=c:/djgpp/lib/flex.skeleton
  
-   GO32TMP is where go32 puts its paging file (TMP and TEMP are checked,
-   in that order, also)
- 
    Remember that unless you manually type these at the command line,
!   they won't take effect until you reboot.  Don't include the "ansi"
!   keyword in the "go32" variable if you don't have an ANSI.SYS driver
!   or equivalent.
  
  * Add your binaries directory to your PATH in C:\AUTOEXEC.BAT
--- 120,152 ----
      set C_INCLUDE_PATH=c:/djgpp/include
      set CPLUS_INCLUDE_PATH=c:/djgpp/cplusinc;c:/djgpp/include
+           ^^^ only needed if you are compiling c++ programs
      set OBJC_INCLUDE_PATH=c:/djgpp/include
+           ^^^ not needed ???
      set OBJCPLUS_INCLUDE_PATH=c:/djgpp/include
+           ^^^ not needed ???
      set LIBRARY_PATH=c:/djgpp/lib
      set TMPDIR=c:/tmp
!              ^^^ this is where gcc's temp files go (optional - defaults to ???)
      set GO32TMP=c:/tmp
!                 ^^^ this is where your paging file goes - if not set, the
!                     variables TMP and TEMP are checked in that order
      set GO32=ansi driver c:/djgpp/drivers/SOMETHING.grd gw 1024 gh 768
                           ^^^ whatever driver works with your VGA (optional)
      set BISON_SIMPLE=c:/djgpp/lib/bison.simple
+           ^^^ not needed for normal compiles
      set BISON_HAIRY=c:/djgpp/lib/bison.hairy
+           ^^^ not needed for normal compiles
      set FLEX_SKELETON=c:/djgpp/lib/flex.skeleton
+           ^^^ not needed for normal compiles
  
    Remember that unless you manually type these at the command line,
!   they won't take effect until you reboot.  If you don't want to clutter
!   your autoexec.bat file, you can create a separate .bat file which
!   sets the variables and call it manually or from autoexec.bat.
!   Another way to set the environment for the compiler is to edit the
!   file djgpp\lib\spec - see djgpp\docs\gcc.tex for details.
! 
!   Don't include the "ansi" keyword in the "go32" variable if you don't
!   have an ANSI.SYS driver or equivalent.
  
  * Add your binaries directory to your PATH in C:\AUTOEXEC.BAT

- Raw text -


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