# ARM Win CE / CEGCC progress & memory issues

**URL:** <https://www.ruby-forum.com/t/arm-win-ce-cegcc-progress-memory-issues/130198>\
**Category:** Ruby\
**Created:** [February 26, 2008, 10:15am UTC](https://www.ruby-forum.com/t/arm-win-ce-cegcc-progress-memory-issues/130198 "2008-02-26T10:15:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [February 26, 2008, 10:15am UTC](https://www.ruby-forum.com/t/arm-win-ce-cegcc-progress-memory-issues/130198/1 "2008-02-26T10:15:28Z")

</div>

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](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/net/gadgets/](http://www.target-earth/net/gadgets/)
