lua-users home
lua-l archive

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


2010/4/4 "J.Jørgen von Bargen" <jjvb.primus@gmx.de>:
> Now I have a lot of code in the luac, which is never called, thus could be
> eleminated.
>
> Is there a tool for this? (Assuming, no function calls are constructed at
> runtime)
> Would it be possible?

I think the answers are no, and yes.  In fact I was idly considering
writing such a tool, and wondering if there was any interest in it.
It would work rather like the 'link' phase of compiled languages and
would be useful to make self-contained scripts (which then could be
easily make into an executable with srlua.)