[erlang-questions] code garbage collector

Jesper Louis Andersen jesper.louis.andersen@REDACTED
Wed Oct 5 10:03:40 CEST 2016


Replies inline

On Wed, Oct 5, 2016 at 9:54 AM Joe Armstrong <erlang@REDACTED> wrote:

>
> I want the *opposite* of "including a dependency" but rather a tool that
> garbage collects code reducing it to a minimal program.
>
>
Isn't this just dead-code-elimination? For each function, you can put it
into SSA-form, reverse the SSA dominator graph and everything not reachable
is dead code which can be eliminated. You can then improve on this
approximation to shave off more code.

For it to really work, you need to have global knowledge of all the modules
in the system. And you can't in Erlang due to its lack of proper bundling
support for modules.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161005/9fd4c92a/attachment.htm>


More information about the erlang-questions mailing list