Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a free tool capable of pruning unused code from a CLI assembly? [closed]

Is there a free tool capable of pruning unused code from a CLI assembly?

I know there are obfuscators that are capable of performing this optimization, but these all cost money. Is there a free (or even open source) tool that removes the unused code in an already compiled assembly?

like image 357
blez Avatar asked Mar 19 '12 15:03

blez


1 Answers

There is. It's called the Mono.Linker.

What I wrote three years about the Mono.Linker ago pretty much still stands. It works well, but it's not magical and could be pretty rough. Plus it usually requires configuration.

On the other hand, it now ships in commercial tools like MonoTouch or Mono for Android, so it's definitely solid, if you don't mind spending some time integrating it.

Note that all released versions of Mono comes with a compiled version of the linker, but I advise you to compile it yourself.

like image 80
Jb Evain Avatar answered Oct 06 '22 01:10

Jb Evain