ashmind / SharpLab

.NET language playground
https://sharplab.io
BSD 2-Clause "Simplified" License
2.69k stars 197 forks source link

Support NativeAOT disasm via `DOTNET_JitDasm` #1260

Open MichalPetryka opened 1 year ago

MichalPetryka commented 1 year ago

.Net 7 introduced official support for NativeAOT and DOTNET_JitDasm - an env var for printing the generated asm. Supporting it in SharpLab would make viewing AOT code possible and would also add support for ARM64. The only issue is that DOTNET_JitStdOutFile was only exposed in .Net 8 and iirc the SDK eats the output from NativeAOT in 7.

ashmind commented 1 year ago

Thanks for reporting -- this is similar to long-standing issues around JIT that all come down to JIT being currently run in memory. I do intend to improve it, though there is no timeline promise.