From: "M. Edward (Ed) Borasky" Date: 2007-06-22T23:12:35+09:00 Subject: Re: Looking for minimalist ruby. Alex Young wrote: > soliton wrote: >> Does any body know if there is ruby binary not greater than 1MB? It >> would be >> better if smaller, because it would be implemented in space constraint >> application like embedded linux system. TIA >> > $ cd ruby-1.8.6/ > $ ./configure > ... > $ make > ... > $ ls -lh ruby > -rwxr-xr-x 1 alex alex 1.6M 2007-06-22 07:43 ruby > $ strip ruby > $ ls -lh ruby > -rwxr-xr-x 1 alex alex 657K 2007-06-22 07:41 ruby > > Mind you, that's without any extensions. > There's another trick you can try -- before the ./configure, type export CFLAGS="-Os -fomit-frame-pointer" This will optimize for space rather than speed and eliminate frame pointers.