search for: hello_init

Displaying 2 results from an estimated 2 matches for "hello_init".

Did you mean: dell_init
2012 Apr 15
2
[LLVMdev] How to compile this linux-driver like programme into .bc file?
...But what if it is a module that includes header files in linux?Could you be kind and tell me the clang command that can compile the following programme into a .bc file? Thank you! #include <linux/init.h> #include <linux/module.h> MODULE_LICENSE("Dual BSD/GPL"); static int hello_init(void) { printk(KERN_ALERT "Hello, world\n"); return 0; } static void hello_exit(void) { printk(KERN_ALERT "Goodbye, cruel world\n"); } module_init(hello_init); module_exit(hello_exit); -- 祝好! 甄凯 --------------------------------------...
2011 Feb 08
1
Compiling a Tcl extension for an R package
...drian Waddell ########################### C Code (save as hello.c): #include <tcl.h> static int Hello_Cmd(ClientData cdata, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) { Tcl_SetObjResult(interp, Tcl_NewStringObj("Hello, World!", -1)); return TCL_OK; } int DLLEXPORT Hello_Init(Tcl_Interp *interp) { Tcl_CreateObjCommand(interp, "hello", Hello_Cmd, NULL, NULL); return TCL_OK; } which can be compiled (under Ubuntu 10.04) with: gcc -shared -o hello.so -DUSE_TCL_STUBS -I/usr/include/tcl8.5/ hello.c -L/usr/lib/ -ltclstub8.5 -fPIC and used within an R session wi...