How to compile in C language written kernel?
-
- Posts: 3
- Joined: Sat Jan 30, 2010 9:10 am
How to compile in C language written kernel?
I'm wondering how to compile in C language written kernel?
Re: How to compile in C language written kernel?
Why not check out the wiki, fx Getting Started.
-
- Posts: 3
- Joined: Sat Jan 30, 2010 9:10 am
Re: How to compile in C language written kernel?
I only found how to compile simply files such as exe, com etc, but I need to compile it to bin file. How do i do that?skyking wrote:Why not check out the wiki, fx Getting Started.
Re: How to compile in C language written kernel?
Compiling a C kernel isnt any different then compiling programs. EXE, ELF both can be used. I personally dont recommend BIN kernels but they can also be used with some additional software (like binutils)
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}