My Authors
Read all threads
1/7 Did you ever need to run a piece of C# code on Windows 3.11? Me neither, but I did it anyway. A thread.
2/7 The key ingredient it setting your expectations low. This is the program I got running:
3/7 I started where my "8 kB selfcontained game in C#" exercise finished: with a way to build fully native C# executable with no dependencies:
4/7 Once you get a piece of C# compiled to native code with so few dependencies, it becomes easy to do weird stuff with it.
5/7 Okay, so we can compile C# to small 32-bit or 64-bit native binaries. How does that help on 16-bit Windows?
6/7 Glad you asked. In 1992 Microsoft shipped an addition to Windows 3.11 called Win32s. This let people run *some* 32-bit apps on the otherwise 16-bit system. Not all Win32 APIs were available, but surprisingly many apps still worked with it. Like Office 95.
7/7 Turns out the object files produced by the CoreRT ahead of time compiler from 2020 can still be linked with the linker that shipped with Visual C++ 2.0 in 1994. So it's C# compiler -> CoreRT Compiler -> Linker -> Success.
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Michal Strehovský

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!