[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ARM Win CE / CEGCC progress & memory issues

John Snowdon

2/26/2008 9:15:00 AM

I've got more pieces of the standard Unix version of Ruby 1.8.6 working
on ARM / Windows CE with CEGCC.

I've built ARM/WinCE/CEGCC versions of zlib and openssl that have
allowed me to compile and load:

ext/bigdecimal/bigdecimal.a
ext/digest/digest.a
ext/digest/md5/md5.a
ext/digest/rmd160/rmd160.a
ext/digest/sha1/sha1.a
ext/digest/sha2/sha2.a
ext/enumerator/enumerator.a
ext/fcntl/fcntl.a
ext/nkf/nkf.a
ext/pty/pty.a
ext/openssl/openssl.a
ext/sdbm/sdbm.a
ext/socket/socket.a
ext/stringio/stringio.a
ext/strscan/strscan.a
ext/syck/syck.a
ext/thread/thread.a
ext/zlib/zlib.a
ext/digest/bubblebabble/bubblebabble.a
ext/etc/etc.a
ext/io/wait/wait.a
ext/racc/cparse/cparse.a

The good news is that I can now run "ruby gem install rake --http-proxy
http://address:port" and it connects and starts to do a bulk update.

The bad news is at this point I get an out of memory error when
attempting to inflate Marshal.4.8.Z (I also have a second problem in
that I can't seem to install local gems... which is weird).

How much memory is required in order to complete this process? Watching
the memory use in CE, it grows allocates approx 21mb of the available
~40mb, leaving around 19mb free. I then see the free memory return to
approx 40mb when Ruby spits out the memory error.

Is there any way to reduce the amount of memory used in this process?

Perhaps I should look at whether building everything using shared
libraries will trim memory useage - the Ruby binary sits at around 2mb,
stripped, with all the above extensions and openssl/libz built in.

I'm looking for ideas at this point!

-John

http://www.target-earth/ne...
--
Posted via http://www.ruby-....