Can antone help me translate this to Linux ASM (if possible)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
MODULE_LICENSE("Dual BSD/GPL");
static int _init(void) {
printk("Module Initialized");
return 0;
}
static int _exit(void) {
return 0;
}
module_init(_init);
module_exit(_exit);
|
Last edited on
Why? That's what the compiler is for.
What is Linux ASM? Do you mean you want to convert it to an ELF binary?
If you're compiling with GCC/G++, simply use the "-S" parameter:
GCC:
gcc -S YourFilesDirectory.cpp
G++:
g++ -S YourFilesDirectory.cpp
It'll give you the Assembly output of your program.
Wazzak
Last edited on