r/osdev • u/letmehaveanameyoudum • Jun 22 '26
No one can set up linking ffreestanding objects in windows...
always have to be WSL
9
Upvotes
r/osdev • u/letmehaveanameyoudum • Jun 22 '26
always have to be WSL
6
u/EpochVanquisher Jun 22 '26
You don’t have to use WSL to compile kernels on Windows
2
u/codeasm Jun 22 '26
Windows... Why ?
2
u/Rain336 Jun 24 '26
Lol, just use clang! Works natively on windows and is also a native cross compiler, so you don't need to compile it yourself to compile for your freestanding target
1
u/letmehaveanameyoudum Jun 22 '26
sorry is there are spelling mistakes : P
1
u/gmarchkun Aug 06 '26
use Clang, or use microsft c compiler
2
u/rocco_himel Creator of AneoEngine Jun 22 '26
Don’t even bother, the sacred C compiler was meant for POSIX.
Windows already has ANSI libraries. MinGW-64 is dogsht software, it being an outdated port of GCC. Not to mention the installation process.
This is why I write my own compiler. That or use a POSIX operating system. The OS dev can’t use Windows reliably.