Message-ID: <3586A384.4E0A@linetap.com> From: nebo Organization: neboland MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Simple Questions. References: <01bd956f$0b1e8560$702c56d1 AT chrisped> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 41 Date: Tue, 16 Jun 1998 13:47:53 GMT NNTP-Posting-Host: lan-cayuga-32.linetap.com NNTP-Posting-Date: Tue, 16 Jun 1998 09:47:53 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk alleycat wrote: > > I have two questions concerning DJGPP. > > 1. When I installed DJGPP for dos on my PC I noticed a small bug or maybe > feature that was attached to the executables. I compiled a small program > and found if I execute it from DOS or the MSDOS prompt(I use Win95), the > program's name can be typed anywhere on the HD > (C:\, C:\WINDOWS, C:\DUKE3D, etc.) The compiler also can be executed > anywhere on the HD. I tried renaming my executable, but no luck. > Does anybody know why this is happening? the directory must be in the PATH environment setting... this is a DOS feature, not a DJGPP feature. > 2. When I compiled a one source program that I created(very small, maybe 20 > lines) using "gcc -o myfile.exe myfile.c", the file compiled fine, but it > takes a whopping 100K of memory. Just to check if this was normal, I > compiled the same file using MSVC 1.0, the file size was only 10K. > Am I doing something wrong when compiling the file, or is this normal? Nope, there's a lot of extra stuff needed for 32-bit protected mode programs, you should try -s this will cut down the size, but only if you don't plan on debugging(after it's compiled and linked). -- Nb nebo AT LTS MajorNet nebo AT linetap DOT com Internet I'll stop drinking when I can't pour, I'll stop standing when I fall over, I'll stop moving when I pass out, I'll stop dreaming when I die.