search for: hellomodul

Displaying 11 results from an estimated 11 matches for "hellomodul".

Did you mean: hellomodule
2012 Apr 12
2
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
Wow that's to much output information. Maybe I can put it in this way. Could you tell me the clang option that can include the linux kernel headers??? Something like "clang -O3 -isystem /lib/modules/`uname -r`/build/include -emit-llvm hellomodule.c -c -o hellomodule.bc" Thank you! -- 祝好! 甄凯 ------------------------------------------------------------------------------------------------------ 2012-04-12 ------------------------------------------------------------------------------------------------------ Name: 甄凯(Z...
2012 Apr 12
0
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
BTW, the Makefile is as folllow, CC := gcc obj-m := hellomodule.o KERNELDIR := /lib/modules/`uname -r`/build PWD := $(shell pwd) modules: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules Can I use an option of clang to specify the KERNELDIR ,etc? Thank you! -- 祝好! 甄凯 ------------------------------------------------------------------------------...
2012 Apr 12
2
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
On Thu, Apr 12, 2012 at 03:48:29PM +0800, 15102925731 wrote: > BTW, the Makefile is as folllow, > > CC := gcc > obj-m := hellomodule.o > KERNELDIR := /lib/modules/`uname -r`/build > PWD := $(shell pwd) > modules: > $(MAKE) -C $(KERNELDIR) M=$(PWD) modules ^^^^^^^^^^^^^^ Check the Makefile under KERNELDIR directory. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Infor...
2012 Apr 12
2
[LLVMdev] How to compile a linux module into .bc file using clang or llvm command?
Yeah, but I tried that command and error message was generated: hellomodule.c:1:10: fatal error: 'linux/init.h' file not found #include <linux/init.h> ^ 1 error generated. how to solve this problem?? Thanks! -- 祝好! 甄凯 ------------------------------------------------------------------------------------------------------ 2012-04-1...
2012 Apr 12
0
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
15102925731 wrote: > Hi, Nick > I think that's the question. I just don't know what's the command line > that can tell clang to find the linux head file like a makefile will do. > Please help me! In the linux kernel, "make V=1" will compile verbosely, printing out each command it runs. Each .o file produced will have its own command-line (many of them will be
2012 Apr 12
0
[LLVMdev] How to compile a linux module into .bc file using clang or llvm command?
On 4/11/12 8:25 PM, 15102925731 wrote: > Yeah, but I tried that command and error message was generated: > > hellomodule.c:1:10: fatal error: 'linux/init.h' file not found > #include <linux/init.h> > ^ > 1 error generated. > > how to solve this problem?? Well, you do have to include all the -I and -D options so that clang can find the Linux kernel header files. I don't know off han...
2012 Apr 12
2
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
Hi, Nick I think that's the question. I just don't know what's the command line that can tell clang to find the linux head file like a makefile will do. Please help me! -- 祝好! 甄凯 ------------------------------------------------------------------------------------------------------ 2012-04-12
2012 Apr 12
1
[LLVMdev] How to compile a linux module into .bc file using clang or llvm command?
...15810729006(Beijing) Address: Room I-406, Central Building, Tsinghua University, Beijing, China. 100084. At 2012-04-12 09:31:43,"John Criswell" <criswell at illinois.edu> wrote: On 4/11/12 8:25 PM, 15102925731 wrote: Yeah, but I tried that command and error message was generated: hellomodule.c:1:10: fatal error: 'linux/init.h' file not found #include <linux/init.h> ^ 1 error generated. how to solve this problem?? Well, you do have to include all the -I and -D options so that clang can find the Linux kernel header files. I don't know off hand what those s...
2012 Apr 12
0
[LLVMdev] HELP: Clang options needed in command to compile device driver into linux module.
...tral Building, Tsinghua University, Beijing, China. 100084. At 2012-04-12 15:56:50,"陳韋任" <chenwj at iis.sinica.edu.tw> wrote: >On Thu, Apr 12, 2012 at 03:48:29PM +0800, 15102925731 wrote: >> BTW, the Makefile is as folllow, >> >> CC := gcc >> obj-m := hellomodule.o >> KERNELDIR := /lib/modules/`uname -r`/build >> PWD := $(shell pwd) >> modules: >> $(MAKE) -C $(KERNELDIR) M=$(PWD) modules > ^^^^^^^^^^^^^^ > > Check the Makefile under KERNELDIR directory. > >Regards, >chenwj > >-- >Wei-Ren...
2012 Apr 11
0
[LLVMdev] How to compile a linux module into .bc file using clang or llvm command?
On 4/10/12 10:11 PM, 15102925731 wrote: > It's actually is .c file. > I just want firstly to compile helloworldmodule.c into > helloworldmodule.bc. > Then I run a LLVM pass on it to do some optimization, and then I > compile the modified .bc file into .ko file. > > So, could you tell me how to compile helloworldmodule.c into > helloworldmodule.bc? I think it's
2012 Apr 11
2
[LLVMdev] How to compile a linux module into .bc file using clang or llvm command?
It's actually is .c file. I just want firstly to compile helloworldmodule.c into helloworldmodule.bc. Then I run a LLVM pass on it to do some optimization, and then I compile the modified .bc file into .ko file. So, could you tell me how to compile helloworldmodule.c into helloworldmodule.bc? I think it's not the same command "clang -O3 -emit-llvm hello.c -c -o hello.bc".