Actually I have two Questions

Q.1: How to write a C language code which is completely machine dependent (means which can run even without OS) ????

Q.2: Is there any open source C compiler exist which can be added in any OS code (in asm) ????
IF NO
Q.3: How can we add a C compiler in a Simple OS code ????