lua-users home
lua-l archive

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


Just to keep the ball rolling, the following is 17kb.


http://blocc.atomik.nu/temp/tinylua_win32.zip


Andy Stark wrote:
Lua list <lua@bazar2.conectiva.com.br> writes:

We are try to shrink lua and luac to the minimum size possible in
order to make it run in less than 30k of ram and to make it fit in less
than 60k of rom.

I get a 40K Lua engine by removing all libraries and the parser modules.


When I checked the Lua 5.0 source a while back, there was nearly 1K of
string data for error messages, etc, which might not be needed if your
device doesn't have text output. It is a bit of a nuisance to go through
all the luaG_runerror calls and others to change the strings to nulls but
it might be worth doing if you are really stuck for space. And of course,
you could reduce the error routines themselves to stubs if they are not
doing anything useful.

So, that gets you down to 39K - just another ten more techniques like this
and you'll be there ;-)

&.


#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal.
The Blackpool Sixth Form College.
#####################################################################################