I'm trying to get ntoskrnl.exe
, hal.dll
, bootvid.dll
, ntdll.dll
, and kdcom.dll
to build with Clang,
in the hope of seeing them work with the MSVC binaries in a normal build.
Currently, it hangs during boot.
win2k3_llvm.mp4
You need Clang, LLVM, and CMake.
To compile things, this should work:
# LLVM build
tools\generate-clang.bat
# MSVC build
tools\generate-msvc.bat
cmake --build cmake-build-debug
To install the binaries, mount your install and do tools\copybins <drive letter>
. It backs up the original files.
You can also go to minkernel/llvmtests
and run compile.bat
, then run testload <system32 path>
to make sure the imports all resolve.
- make
libcntpr.lib
compile with Clang - figure out the hang on
SYSTEM32\acpitabl.dat
in NTLDR - make shell scripts to do what batch files do
- write a program to convert simpler
sources
files to CMake? - add Clang to original build system?
This is purely for educational use. This code, and Windows, are owned by Microsoft Corporation. They did not endorse this, and your use of this is solely your own responsibility. This code is not open source.