From: Andris Organization: Pavenis To: djgpp AT delorie DOT com, Uwe Homm Subject: Re: DJGPP/RHIDE on W2K Date: Fri, 13 Sep 2002 04:43:56 +0300 User-Agent: KMail/1.4.7 References: <3D7CD1D4 DOT 5C95D85C AT gmx DOT de> <200209110644 DOT 18851 DOT pavenis AT lanet DOT lv> <3D80C0B5 DOT 56EC2CA AT gmx DOT de> In-Reply-To: <3D80C0B5.56EC2CA@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Message-Id: <200209130443.59237.pavenis@lanet.lv> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g8DDU4p16808 Reply-To: djgpp AT delorie DOT com On Thursday 12 September 2002 19:28, Uwe Homm wrote: > Hi > > > > Using which option strips debug information? I unchecked [-g] in RHIDE, > > > but i did not work > > > > Examples: > > > > gpp -O2 hello.cc -s -o hello.exe > > > > or > > > > gcc -O2 hello.cc -o hello.exe > > strip hello.exe > > Thanks again! This produces a really smaller EXE. > > Please can you tell me -if possible- where i can change in RHIDE the > appropriate settings for using your first example? You may run strip on Your executable later. It will be no more debuggable after that. 15Mb (with debug info) DJGPP executables are not so uncommon for me, especially when there is much C++ code. They are getting much smaller after I strip them or (more often) simply compress them with UPX. > I assume, that gpp is an compiler. Is it true? So, where i can change > the to be used compiler by RHIDE? It's the same as g++ for example under Linux, but letter '+' is illegal in filename under plain DOS. Therefore it was changed to 'p'. The only difference from gcc.exe is that links C++ libraries (-lstdcxx -lm) at linking stage. So can also write 'gcc -O2 hello.cc -lstdcxx -lm -o hello.exe' and it is the same as 'gpp -O2 hello.cc -o hello.exe'. One can use gcc but must only take sure both needed libraries are linked with. Andris