chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Minimal Memory Footprint


From: Felix
Subject: Re: [Chicken-users] Minimal Memory Footprint
Date: Fri, 07 Sep 2012 23:31:17 +0200 (CEST)

> 
> It's probably possible to tweak things a little bit to use less memory
> and disk space, but it will demands some work.
> 
> If you link your program statically, it may use less memory and storage
> space in this case:
> 
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 28808 mario     20   0  2072 1044  604 R  100  0.0   0:21.51 loop
> 
> $ csc -x -uses -static library loop.scm

Use -static-libs to link statically with the CHICKEN runtime, otherwise
you include libc. That gives a binary of around 1MB.

Binaries can be reduced further, but to do any useful stuff and take
advantage of eggs, dynamic is necessary.


cheers,
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]