apple/darwin-xnu ? reverse-engineered prompt

Reverse engineered prompt

I'd like you to build me a project containing the source code for the Apple XNU kernel, which is the core part of operating systems like macOS. My goal is to explore how a real OS kernel is built and see if I can compile it myself.

Please set it up using the official source, which I believe is mostly written in C and C++. It should include the different components I've heard about, like the Mach kernel, parts from FreeBSD, and that C++ API for drivers called IOKit.

The most important thing is that the project should be configured so I can actually build it. Set up the makefiles so I can compile a 'DEVELOPMENT' version for an x86_64 machine. Also, make sure to include the various tools for testing, debugging, and profiling that come with the kernel source.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab