After writing a profiler in C#, I've now published the first of a series of articles about how use C# to... write a .NET Garbage Collector. #dotnet
https://minidump.net/2025-28-01-writing-a-net-gc-in-c-part-1/
https://minidump.net/2025-28-01-writing-a-net-gc-in-c-part-1/
Comments
EXPORTS
GC_Initialize=MyNativeAotDll.MyGC_Initialize
Put this in a shim.def file and run link.exe like this: `link /dll /def:shim.def /out:shim.dll /noentry`. This produces a DLL with GC_Initialize export that is forwarded to MyGC_Initialize in MyNativeAotDll.