search for: hello1

Displaying 18 results from an estimated 18 matches for "hello1".

Did you mean: hello
2017 Jan 20
3
LLVM pass error
I am getting the following error while compiling my pass file with clang to emit bitcode Hello1.cpp:1:10: fatal error: 'llvm/Pass.h' file not found #include "llvm/Pass.h" ^ 1 error generated. I had included this .cpp file for implementing function pass in lib/Transform/Hello1 directory and also made approriate changes in cmakelists.txt file and again build from th...
2013 Mar 11
0
[LLVMdev] symbol address: llvm-objdump vs. objdump
Hello i see that the address of specific symbol are not the same between llvm-objdump and objdump. The code: --- #include <stdio.h> int machin = 42; int main () { printf("Hello : %d\n", machin); return 0; } ---- compile command: clang hello1.c -o hello1 And the address of the symbol of the global variable "machin": [ Fri Mar 08 - 22:58:36 ][ wwolff at hostname ] ~/hello_stuff $ objdump hello1 -t -g | grep machin 0000000000601020 g O .data 0000000000000004 machin [ Fri Mar 08 - 22:58:40 ][ wwolff at hostnam...
2012 Dec 26
0
Syslinux 5.00 LABEL directive with trail space fails
In Syslinux 5.00, when a LABEL directive ends with trailing space(s), the boot entry fails (it can't found the "file"). Example: *** cfg start *** DEFAULT hello1 PROMPT 0 LABEL hello1 COM32 hello.c32 *** cfg end *** In the above cfg file, add a trailing space character after "LABEL hello1" so to make it fail. The following different cases were tested too: _ No line has trailing spaces. _ New lines are Unix-like or DOS-like (CR/LF) format....
2020 May 31
2
Question about Constant expressions
...uction in the LLVM IR ? The LLVM IR Builder adds it as a separate instruction, but it is rolled into one call instruction in the .bc output. I am just curious as to why it is done this way. #include <stdint.h> #include <stdio.h> int test21(void); int test21(void) { printf("Hello1\n"); return 0; } define dso_local i32 @test21() #0 { %1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0)) ret i32 0 }
2011 May 03
0
[LLVMdev] Loop-Unroll optimization
Even after all the sequence of commands below bit-code is not showing any effect of loop-unrolling *manish at manish:~/Test2$ llvm-gcc-4.2 -O2 -emit-llvm Hello.c -c -o Hello.bc* *manish at manish:~/Test2$ opt-2.8 -loops Hello.bc -o Hello1.bc* *manish at manish:~/Test2$ opt-2.8 -loopsimplify Hello1.bc -o Hello2.bc* *manish at manish:~/Test2$ opt-2.8 -indvars Hello2.bc -o Hello3.bc* *manish at manish:~/Test2$ opt-2.8 -loop-unroll Hello3.bc -o Hello4.bc* *manish at manish:~/Test2$ llvm-dis-2.8 Hello4.bc* My *Hello.c* looks like: for...
2011 May 04
1
[LLVMdev] Loop-Unroll optimization
...mgupta.iitr at gmail.com> wrote: > Even after all the sequence of commands below bit-code is not showing any > effect of loop-unrolling > > *manish at manish:~/Test2$ llvm-gcc-4.2 -O2 -emit-llvm Hello.c -c -o Hello.bc > * > *manish at manish:~/Test2$ opt-2.8 -loops Hello.bc -o Hello1.bc* > *manish at manish:~/Test2$ opt-2.8 -loopsimplify Hello1.bc -o Hello2.bc* > *manish at manish:~/Test2$ opt-2.8 -indvars Hello2.bc -o Hello3.bc* > *manish at manish:~/Test2$ opt-2.8 -loop-unroll Hello3.bc -o Hello4.bc* > *manish at manish:~/Test2$ llvm-dis-2.8 Hello4.bc* > > M...
2004 Sep 22
2
Facing problems with C code compilation - Please help.
...ows version of R 1.9.1. I am trying to compile C code in it. I have my C code - "hello.c" is lying in C:\Program Files\R\rw1091 This code is - #include <R.h> void hello(int *n) { int i; for(i=0;i< *n; i++) { Rprintf("Hello World ! \n"); } } ======= Code hello1.R is also lying in the same directory. This code is - hello2 <- function(n) { .C("hello", as.integer)) } ======= >From the command prompt, I go into the directory C:\Program Files\R\rw1091\bin and I do C:\Program Files\R\rw1091\bin>R CMD SHLIB hello.c 'make' is no...
2011 May 03
3
[LLVMdev] Loop-Unroll optimization
Hi, You might want to try running -loops -loop-simplify before loop unroll. >From loop simplify.cpp This pass performs several transformations to transform natural loops into a00011 // simpler form, which makes subsequent analyses and transformations simpler and00012 // more effective. Arushi On Tue, May 3, 2011 at 2:17 PM, Manish Gupta <mgupta.iitr at gmail.com> wrote: > You
2012 Nov 28
3
5.00pre11 initial comments
...no unwanted effect when using [vesa]menu.c32 and "MENU *ROW*" directives. To replicate all the above, boot 4.06 and 5.00-pre11 and observe the initial (DISPLAY) screen and the initial prompt line, and then execute each label from the following: *** SYSLINUX.CFG START *** DEFAULT hello1 PROMPT 0 F1 help1.txt DISPLAY help1.txt LABEL hello1 COM32 hello.c32 LABEL cat1 COM32 cat.c32 APPEND help1.txt LABEL cat2 COM32 cat.c32 APPEND help2.txt *** SYSLINUX.CFG END *** *** HELP1.TXT START *** LINE 1 OF HELP1.TXT LINE 2 OF HELP1.TXT LINE 3 OF HELP1.TXT LINE 4 OF HELP1.TXT *** HEL...
2009 Dec 17
2
[LLVMdev] Compiling a raw binary with llvm/clang
Hey, The following code creates a raw binary (no ELF or PE.. just raw): gcc -nostartfiles -c -o hello.o hello.c ld -o hello1 hello.o --oformat binary You can try the following code out with it: void _start() { while(1); } The resulting raw binary is 5 bytes. Now how do you do this in clang/llvm? Apparently llvm-ld doesn't have a "--oformat binary" option. Anybody know how to do this with llvm? -- Vie...
2009 Dec 17
0
[LLVMdev] Compiling a raw binary with llvm/clang
On 2009-12-17 22:08, LiteHacker wrote: > Hey, > > The following code creates a raw binary (no ELF or PE.. just raw): > > gcc -nostartfiles -c -o hello.o hello.c > ld -o hello1 hello.o --oformat binary > > You can try the following code out with it: > > void _start() > { > while(1); > } > > The resulting raw binary is 5 bytes. > It is 2.1M here (on x86_64), and 4.3k with -m32 when using gcc 4.4.2. Apparently it includes the dynamic link...
2012 Apr 09
0
[LLVMdev] How to instrument a this function using insertBefore instruction???
...as well just implement the self-written "check function" in C language instead of wrapping it in LLVM module. According to the hint you give me, all I need to do is as follow(?) 1. Implement the "Check function" in the check.c file; 2. Add the check function into the module(the Hello1.bc file which I will run the functionPass on) in the functionPass file. 3. Determine the exact position and insert the CallInst instruction to call that check function. (already done as is shown in the source code). 4. gmake and use the opt tool to generate the instrumented module(Hello2.bc). 5. Li...
2012 Apr 09
1
[LLVMdev] How to instrument a this function using insertBefore instruction???
...self-written "check > function" in C language instead of wrapping it in LLVM module. *According > to the hint you give me, all I need to do is as follow(?)* > > 1. Implement the "Check function" in the check.c file; > 2. Add the check function into the module(the Hello1.bc file which I will > run the functionPass on) in the functionPass file. > 3. Determine the exact position and insert the CallInst instruction to > call that check function. (already done as is shown in the source code). > 4. gmake and use the opt tool to generate the instrumented >...
2012 Apr 09
2
[LLVMdev] How to instrument a this function using insertBefore instruction???
Hi, I don't think the code you pasted can be the correct code, where does FibF come from? Anyway, the problem is that you're calling the FibF from Module A, however you defined it for Module B. You need to insert the FibF function into the Module that you're running. To do this override "virtual bool doInitialization(Module &M);" and insert FibF into M. Joey 2012/4/9
2020 May 04
2
[EXTERNAL] How to get branch coverage by using 'source-based code coverage'
...|| str == "bar") { int a = 5; a = 7; } else { int b = 6; b = 4; } return 0; } *Coverage build commands* #!/bin/bash g++ -o simple -fno-exceptions -fno-inline -fprofile-arcs -ftest-coverage simple.cc ./simple "foo" ./simple "bar" ./simple "hello1" ./simple "hello2" ./simple "hello3" ./simple "hello4" ./simple "hello5" ./simple "hello6" ./simple "hello7" ./simple "hello8" lcov --rc lcov_branch_coverage=1 --capture --directory . --output-file simple.lcov.info genhtml s...
2006 Apr 10
10
Prototype Ajax - How to pass my own params to onComplete ?
Sorry if this has been covered before, i can''t imagine it hasn''t, but i''ve been unable to find any information on it. Can i pass my own parameters to the onComplete function specified by Ajax.Request ? My basic setup is i have an html element triggering an event (the ajax update). I have additional information encoded into the element about how it should handle
2020 May 03
2
[EXTERNAL] How to get branch coverage by using 'source-based code coverage'
Hi, Alan Really very excited to receive your email and sorry to be slow replying, it has been exceptionally busy over the last few days ;( Your explanation made the problem clear to me. So gcov branch coverage should be called condition coverage and clang region coverage is branch coverage in fact(also known as *decision/C1*), right? And llvm/clang will support all the following coverage
2006 Jul 18
6
backgroundrb - Connection closed
Hello, maybe someone can help with backgroundrb. I''ve written an application, which makes use of backgroundrb. Everything works fine on my development machine, but it crashes on my production server. Something seems to be wrong with backgroundrb, but I don''t know the cause. All I get is the error message attached below, which is extracted from the production.log. I