Open mosa opened 10 years ago
I think this feature should only be used in environments which will have no reflection / dynamic method calls / post OS-compilation libraries and drivers as this will break functionality.
Tasks [incomplete]:
x. Skip emitting RTTI & reflection metadata when type (and derived type) is never allocated, or method never called.
Nearly complete; working on edge cases related to interfaces and method references.
+HELP WANTED:
It's been a few years since this was implemented. It would be valuable to enable the feature and report back on any errors, and troubleshoot and fix them as well.
The method scanner only compiles methods that are actually by the application. Also, called "tree shake".
Reducing the number of method required to compile an application can significantly shorten the compilation time and memory requirements.
It will also be valuable for low memory platforms.