[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Eleminate unused functions from luac
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 4 Apr 2010 19:08:25 +0200
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.)