From: "Dan Mintz" Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP compiler question (extreme newbie) Date: 15 May 1997 22:29:48 GMT Organization: Private Party Lines: 41 Message-ID: <01bc617f$77190300$d1d523c7@default> References: <337b72a6 DOT 111607 AT news DOT frontiercomm DOT net> NNTP-Posting-Host: wck-ca6-17.ix.netcom.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I wouldn't worry. If you used certain libraries, they also got compiled in with your program, and they might take up some space if the file is big. Try using some new libraries and see what that does. Dan L. Brown wrote in article <337b72a6 DOT 111607 AT news DOT frontiercomm DOT net>... > I have been programming for a whopping 5 days now and I have a > problem. I wrote this sample to test the DJGPP compiler. I used a > DOS box inside of OS/2 and issued the following command: > > gcc name.c -o name.exe -lm > > This command compiled the program and it ran fine, but the file was > 90176 bytes long. I tried to compile several other test programs of > different lengths and they always come out to be 90176 bytes long. > > Could someone please help me or direct me to the appropriate FAQ? > > > /************************************************** > NAME.C Test program > **************************************************/ > #include > > > main() > { > char name[80]; > printf("What is your name? "); > scanf("%s", &name); > > printf("Hello, %s, how are you?\n", name); > > return 0; > } > > > >