aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Binaries size  (Read 4174 times)

baron-robert

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Binaries size
« on: June 05, 2006, 05:38:06 PM »

I compile today the CVS version, and the binaries (amuled & amule) are near 35MB, is it normal?

for the compilation i use this flags:
./configure --prefix=/usr/local/amule-2.1.2CVS --enable-ccache --enable-amule-daemon --enable-amulecmd --enable-webserver --disable-amule-gui --disable-cas --disable-wxcas --disable-alc --enable-alcc

regards
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: Binaries size
« Reply #1 on: June 05, 2006, 05:47:48 PM »

Yes, this is perfectly normal because they are compiled with full debuginfo by default. You can disable that or strip the binaries, but please don't post crash reports then, they are not helpful without debuginfo.
Logged

baron-robert

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: Binaries size
« Reply #2 on: June 05, 2006, 05:51:52 PM »

So, if i want to reduce the binaries size, i have to set the option '--disable-debug'?
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: Binaries size
« Reply #3 on: June 05, 2006, 05:54:42 PM »

Yes, either that, or execute "make install-strip" instead of "make install", or both.
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: Binaries size
« Reply #4 on: June 11, 2006, 09:17:29 PM »

I think aditional to --disable-debug, it's also neccessary the --enable-optimize switch. That has reduced the size of my binaries to about 4.5MB

Regards.
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: Binaries size
« Reply #5 on: June 11, 2006, 09:32:14 PM »

The impact of --enable-optimize on the code size is very system dependent. On some operating systems and hardware platforms and with some GCC versions the binaries will be smaller, in other configurations they will be larger. --enable-optimize and --disable-debug are not really linked to each other.
Logged