bhargav-j47/Dernel ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple custom x86 kernel in C that can boot and show that it is alive.

I want the project to compile cleanly with the existing build files and linker setup, and I want the code organized into a few clear folders for architecture specific code, shared headers, and small helper libraries. Make it easy to run in an emulator, and include the basic pieces needed for a kernel start up, like early initialization, memory layout handling, and a simple way to print a message so I know it booted.

Keep it straightforward and readable, since this is meant to be a learning project. If anything in the current setup looks incomplete, fill in the missing pieces in a sensible way and use the existing structure where possible. If you need current details for toolchain or emulator setup, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab