| delorie.com/archives/browse.cgi | search |
| From: | "James Bunting" <james AT aic DOT co DOT uk> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <7ei8dv$28fo$1 AT ns DOT felk DOT cvut DOT cz> |
| Subject: | Re: Too big code |
| Date: | Thu, 8 Apr 1999 19:19:10 +0100 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.00.2014.211 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211 |
| NNTP-Posting-Host: | warp8-135.enta-net.co.uk |
| Message-ID: | <370cf5d4.0@energise.enta.net> |
| X-Trace: | 8 Apr 1999 19:30:44 -0100, warp8-135.enta-net.co.uk |
| Lines: | 29 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
You could try the -s compiler option. If you are using RHIDE it is simply a matter of going to "Options/Compiler Options" and typing in "-s" (no quotes). This should reduce the size of your executable. Michal Strelec <strelec AT adam DOT osu DOT cz> wrote in message news:7ei8dv$28fo$1 AT ns DOT felk DOT cvut DOT cz... > Hi > I have a question: > I tried to compile with dj small programs (classical Hello.c) and output > file hello.exe was BIG (130kB). Hello.c uses (I suppose) standart lib > libgcc.a. > Next I tried to compile it with bc3.1 and output file was SMALL (6kB). > Next I have found in gnu archieve (gpcXX.zip) I took libgcc.a and overwrite > the previous one. After compilation file was 70kB. > > Can you tell me how to minimize size of the output code? I use only few > standard functions. > > PS: I also found that BC has small libraries. But it has strange names and I > don't know what functions are included. > > Thanx Michal > >
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |