0

Can Linux kernel be compiled with gcc configured for Linux executables (not bare metal)? I have noticed that Buildroot builds cross-compiler arm-linux-gnueabi to compile everything and became curious.
Or am I wrong and it builds bare-metal cross-compiler too?

0

Yes, a Linux compiler can be considered as a "super-set" of a bare-metal compiler: it can compile both Linux userspace applications, and bare-metal applications (the Linux kernel, bootloaders, etc.).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.