Building a self-contained game in C# under 2 kilobytes
Exploring the challenge of creating a tiny, self-contained C# game under 2KB, focusing on size optimization for faster transfers.
Michal Strehovsky is a .NET Runtime engineer at Microsoft based in Slovakia, writing about C#, .NET, and low-level programming. He also maintains the bflat compiler and enjoys experimental C# projects.
35 articles from this blog
Exploring the challenge of creating a tiny, self-contained C# game under 2KB, focusing on size optimization for faster transfers.
Explains how to use C# and the bflat compiler to create a bare-metal bootable game for Raspberry Pi, targeting UEFI without a .NET runtime.
Explains how .NET 8 Native AOT uses whole-program analysis for key optimizations like sealing classes and devirtualization.
A guide to reverse engineering .NET apps compiled with Native AOT, explaining the challenges and tools needed for analyzing native executables.
A technical guide on creating a single .NET executable that runs on both Windows 7 (.NET 3.5) and Windows 10 (.NET 4.x) using TLS callbacks.
A developer recreates the classic DOOM fire effect using C# and runs it on the ancient Windows NT 3.51 operating system.
An exploration of creating extremely small, self-contained C# executables, focusing on size optimization for faster transfers and deployment.
A technical blog archive chronicling deep-dive projects and experiments in C#, .NET, low-level programming, and reverse engineering.
Explores the benefits of Ahead-of-Time (AOT) compilation for C#/.NET applications, comparing it to JIT and discussing performance and efficiency gains.
Developer announces open-source work on a native compiler for .NET Core, enabling C# programs to run as lean, dependency-free native apps.
A technical note confirming that the Intel Celeron J1900 CPU supports Extended Page Tables (EPT) for virtualization, contrary to Intel's official documentation.
A technical guide on implementing Bluetooth background tasks for a Windows Phone 8.1 app to connect to an ELM327 car adapter.
A guide to fixing Windows 8.1's behavior of reactivating existing app instances instead of launching new ones from search.
A developer reverse-engineers Office 2013 to change its ALL CAPS menus to lowercase, detailing the debugging and patching process.
Useful Windows registry tweaks for developers to improve workflow, including Visual Studio and multi-monitor setup fixes.
Analysis of the AVG Mobilation antivirus app for Windows Phone, revealing it as a non-functional port with humorous, ineffective scanning code.
A technical guide on how to disassemble and inspect JIT-compiled code for the Windows Phone CLR, revealing emulator vs. device differences.
Exploring GCC-CLI, an experimental GCC branch with a .NET CIL backend and frontend for compiling between native and managed code.
A free driver for Windows 7 Location API that provides geolocation to apps using Google's services via WiFi or IP.