On Sun, Oct 13, 2013 at 8:51 AM, Manuel Reimer <manuel.s...@nurfuerspam.de>wrote:
> Hello, > > I would like to use Perl on an embedded device, which only has 64MB of RAM. > > Are there any tricks to reduce the memory usage of the perl interpreter? > > Thanks in advance > > Greetings, > > Manuel You probably want to take this question to perl5-porters, rather than the beginners list. Are you sure you should be looking at perl though? All the perls I've got over here are built with threads and DEBUGGING, which likely increases memory size, but even then they use up around ~1.5MB worth of memory; anything else comes from your scripts or modules invoked by them, so tackling those first is generally a much more productive idea than looking at perl itself. If you're (cross?)compiling perl yourself, it might be worth it to tweak with the optimization settings, or maybe even using perl's malloc. But those are definitely questions for p5p :D