Hacker News new | past | comments | ask | show | jobs | submit login

> Hack Clang to emit ~0 for true, recompile your kernel and userspace, and see how much of it breaks.

The ABI of your platform might require special values for true and false, e.g., the SysV64 ABI explicitly requires 0 for false, and 1 for true.

So you would need to define a new platform for doing these tests, and then to test some code, you would need to port it to this new platform. AFAICT, if you port that code correctly, everything would work, and if something doesn't work, then you didn't port that code correctly.

So this experiment feels moot.

> I'm almost certain the system won't boot.

Clang can't compile the Linux kernel, so I hope you mean some other kernel. Otherwise, without a kernel, the system won't even boot :P




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: