Is it possible for `.net` to create exe files smaller than 1kb?
In general, I've been trying to do something related to the smallest exe files lately In my searches, I've seen that the smallest .net-based exe file appears to be 1kb: https://blog.washi.dev/posts/tinysharp/ At the same time, I've also seen some even smaller exe files for native X64 that are just over two hundred bytes: https://github.com/ayaka14732/TinyPE-on-Win10
I'm wondering if it's possible for .net based exe files to be smaller than 1kb?In my current experiments I've tried removing the
NUL
NUL
byte at the end of the generated exe file, but the program will become unrunnable.
Here is a dumb question that you probably never asked yourself: What is the minimal amount of bytes we need to store in a .NET executable to have the CLR print the string"Hello, World!" to the standard output?