Mono with AOT on Debian
Resolved Issues:
At package install a tool needs to run the AOT generator for all assemblies: dh_monoaot
Unresolved Issues:
- CPU features could change and then the AOT image would emit invalid instructions
- Example: you install Debian with Mono + AOT at install time on an Intel Core i7, then you make an image of that system and install it on a Pentium 4. Mono will no longer run.
- Possible Upstream Solution: Mono should check used instructions and compare that against currently running CPU and refuse to use the AOT image
- Possible Downstream Soltution: checking CPU features at boot and if the feature list changed, drop all AOT images and re-generate