From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: DOS("djgpp") compiler Date: Thu, 16 Jan 1997 21:21:58 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 83 Message-ID: <32DF0C76.6BA2@cs.com> References: <4509D47202E22E79 AT -SMF-> <4509D47201E22E79 AT -SMF-> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp207.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Coppola, Richard A wrote: > > Sir: > I purchased the FSF cdrom titled, "GNU Compiler Tools Binaries Edition 3, > December 1995. Unfortunately, the Free Software Foundation CD-ROM includes a fairly out-of-date version of the djgpp compiler. That edition came with version 1.12m4, as I recall, and did not include all of the goodies that djgpp can use; only a very basic set of programs. > 1. about the compiler options All the compiler options are documented in the Info documentation that should come with the distribution. > 2. how to get on line documentation or help You can read these with a hypertext viewer that supports the Info format, such as the one available with djgpp. > 3. how to get a compiler output listing of the source code, such as what > you get with a FORTRAN compiler I'm not sure what you are asking here. Do you want the code as it comes out of the preprocessor, before it goes to the compiler? Or are you looking for the assembly output? In either case, there is a switch to do so: -E outputs the preprocessed code to standard output, and -S outputs an assembly language file for each input file. If you want something else, please be more specific. :) > 4. how to direct the compiler output to a file (>fn doesn't seem to work) That's because COMMAND.COM doesn't support redirecting stderr. With DJGPP version 1, you must instruct the go32 DOS extender to redirect stderr by setting certain flags in the GO32 environment variable. I'm working purely from memory here, but if you do something like this: set GO32=2r1 you should then be able to redirect all output from djgpp programs normally. Version 2 of DJGPP uses a different method of redirecting stderr. I don't know if the CD-ROM contains online documentation for djgpp, as I didn't get djgpp that way. However, all the djgpp resources you could ever dream of are yours on the Internet. For starters, visit http://www.delorie.com/djgpp/, and begin looking at what's old, what's new, and what's available. Look through the FAQ lists (both for version 1 and version 2), and look at the Getting DJGPP page. When you've seen enough, go to the nearest SimTel FTP site listed in the FAQ chapter 4.1. The most commonly used US mirror is ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/. Once there, you must make the decision of whether to stick with version 1, and just download the files you need, or to upgrade to version 2.01, which is the currently supported version, and replace all your files. The directories for each version are clearly labeled; you should start by getting either 'v1/readme.1st' or 'v2/readme.1st' and looking in it to see what files to get and how to install them. While you may have reasons for wanting to stay with what you got from the FSF CD, I highly recommend upgrading to the latest version as soon as you can. There are so many things that are improved, and more importantly, version 1 is no longer supported by the djgpp developers. With any luck, either a new updated distribution will soon be released on the FSF CD, or the DJGPP Book Project (http://www2.ari.net/flyboy) will finally reach its conclusion and publish a full distribution of its own. Hope this helps! -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | God's final message to His Creation: | http://www.cs.com/fighteer | | "We apologize for the inconvenience."| Fight against proprietary | | - Douglas Adams | software - support the FSF!| ---------------------------------------------------------------------