Mail Archives: djgpp/2002/09/13/09:30:05
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
- Raw text -