lua-users home
lua-l archive

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


On Tuesday 01 February 2005 03:18, Greg McCreath wrote:
> We're looking for about 100k (or less) for the program size (above our
> own software), and we'll have maybe 300-400k of memory to play with.

Yet another number: statically linking 5.0.2 with dietlibc 0.27 (intel linux)
I get about 110K including compiler and all standard libs
(but w/o dlopen, which diet lacks).
W/o compiler and libs I get around 50K, still statically linked and
including stdio (which alone makes ~8K due to one or two nasty,
nut easy to remove uses in the core).

Going for a small static build,
I'd replace stdio (just in the middle of doing it, out soonish),
remove locale-related stuff (the POS will not switch the locale?)
and use an integer-based built w/o all the math and especially
the %f decimal/binary float conversion, which is a killer
(or at least restrict it to %a, which is small, fast and exact).


salud