how to compile kernel programs
I am writing kernel programs..
i need to compile those things..
kernel programs are not modules...
i want to use basic level functions.....
How to compile programs is my doubt..
dont say u cant compile programs
we can compile becoz using some options in gcc we can able to recompile kernel
so , what options i have to include to gcc so that i can compile kernel programs
#include <linux/kernel.h>
#include <stdio.h>
int main(){
printk (KERN_INFO ""THIS IS SUBBU");
printk(KERN_DEBUG "how r u??");
return 0;
}
i want to compile and execute this program
how ???
Last edited by ravindra1103; 04-07-2007 at 10:51 PM.
|