Displaying 20 results from an estimated 381 matches for "helloworld".
2008 May 05
2
[LLVMdev] debugging LLVM generated executables???
...hours. I'd like to debug a binary produced with LLVM. For
the life of me, I can't get any symbols into gdb and llvm-db won't
even start the program nor load any useful information about it.
Here's my current strategy (which isn't working):
llvm-gcc -g -O0 -c -emit-llvm helloworld.c
opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o
llvm-ld -native -o helloworld helloworld-mypass.o
gdb helloworld
I've tried several variations on the above.
Any suggestions?
Note, what is critical about the whole thing is I must run "mypass" on
the byt...
2008 May 06
2
[LLVMdev] debugging LLVM generated executables???
...optimizations are probably killing your debug info.
--Owen
On May 5, 2008, at 8:21 PM, Mark Oskin wrote:
> Hi everyone again,
>
> I did discover the following works (see below). However, does anyone
> know of the "proper" way with LLVM?
>
> llvm-gcc -g -c -emit-llvm helloworld.c
> opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o
> llc -fast -f -o helloworld.s helloworld-mypass.o
> as -o helloworld-prime.o
> gcc -o helloworld helloworld-prime.o
> gdb helloworld
>
> On May 5, 2008, at 4:17 PM, Mark Oskin wrote:
>
>> Hi...
2008 May 06
0
[LLVMdev] debugging LLVM generated executables???
Hi everyone again,
I did discover the following works (see below). However, does anyone
know of the "proper" way with LLVM?
llvm-gcc -g -c -emit-llvm helloworld.c
opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o
llc -fast -f -o helloworld.s helloworld-mypass.o
as -o helloworld-prime.o
gcc -o helloworld helloworld-prime.o
gdb helloworld
On May 5, 2008, at 4:17 PM, Mark Oskin wrote:
> Hi everyone,
>
> I have a question tha...
2019 Jan 28
4
lld write wrong symbol value in .data section if enable -pie
...lues in .data section, which have the R_X86_64_64 relocation entries, are all 0. In other word, I found the S in below R_X86_64_64 calculation is 0.
Name: R_X86_64_64
1
word64
S + A
Below is an example to compare the lld and ld, sorry about the verbose.
1. Firstly, I use lld to link a HelloWorld module with -pie enabled:
"/home/jshi19/llvm/releaseinstall/bin/ld.lld" -pie -z relro --hash-style=gnu --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /home/jshi19/wksp_efi/lgao4/edk2/Build/OvmfX64/NOOPT_CLANG38/X64/MdeModulePkg/Application/HelloWorld/HelloWorl...
2008 May 07
2
[LLVMdev] debugging LLVM generated executables???
...2008, at 8:21 PM, Mark Oskin wrote:
>>
>>> Hi everyone again,
>>>
>>> I did discover the following works (see below). However, does
>>> anyone
>>> know of the "proper" way with LLVM?
>>>
>>> llvm-gcc -g -c -emit-llvm helloworld.c
>>> opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o
>>> llc -fast -f -o helloworld.s helloworld-mypass.o
>>> as -o helloworld-prime.o
>>> gcc -o helloworld helloworld-prime.o
>>> gdb helloworld
>>>
>>> On May...
2012 Apr 03
1
Package seems to be present but library don't find it
Hi,
I try to make my first package? The HelloWorld.R file is:
#### HelloWorld.R ####
#' showHello est une fonction R permettant d'afficher le message
#' "Hello World!" sur la console.
#' @title la fonction showHello()
showHello <-function(){
cat("Hello World!\n")
}
I use the following procedure to get the ta...
2008 May 06
0
[LLVMdev] debugging LLVM generated executables???
...ks!
-mark
> --Owen
>
> On May 5, 2008, at 8:21 PM, Mark Oskin wrote:
>
>> Hi everyone again,
>>
>> I did discover the following works (see below). However, does anyone
>> know of the "proper" way with LLVM?
>>
>> llvm-gcc -g -c -emit-llvm helloworld.c
>> opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o
>> llc -fast -f -o helloworld.s helloworld-mypass.o
>> as -o helloworld-prime.o
>> gcc -o helloworld helloworld-prime.o
>> gdb helloworld
>>
>> On May 5, 2008, at 4:17 PM, Mark O...
2006 Sep 12
2
Memory problems with a custom R package
...*********************
I have read that some time this occurs because it cannot find the function
in the shared library but I have tested this theory with a simple text
message and this is displayed but again the memory error occurs.
The C++ code has been reduced to the simplest possible:
*** helloworld.h
extern "C" void helloworld(void);
*** helloworld.cpp
#include <iostream>
#include "helloworld.h"
void helloworld(void) {
// This was my test line that was displayed as described above.
// std::cout << "My first R Package Test." << std::endl...
2008 May 07
0
[LLVMdev] debugging LLVM generated executables???
...wrote:
>>>
>>>> Hi everyone again,
>>>>
>>>> I did discover the following works (see below). However, does
>>>> anyone
>>>> know of the "proper" way with LLVM?
>>>>
>>>> llvm-gcc -g -c -emit-llvm helloworld.c
>>>> opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o
>>>> llc -fast -f -o helloworld.s helloworld-mypass.o
>>>> as -o helloworld-prime.o
>>>> gcc -o helloworld helloworld-prime.o
>>>> gdb helloworld
>>>...
2008 May 07
1
[LLVMdev] debugging LLVM generated executables???
...>>> Hi everyone again,
>>>>>
>>>>> I did discover the following works (see below). However, does
>>>>> anyone
>>>>> know of the "proper" way with LLVM?
>>>>>
>>>>> llvm-gcc -g -c -emit-llvm helloworld.c
>>>>> opt -load=mypass.dylib -mypass < helloworld.o > helloworld-
>>>>> mypass.o
>>>>> llc -fast -f -o helloworld.s helloworld-mypass.o
>>>>> as -o helloworld-prime.o
>>>>> gcc -o helloworld helloworld-prime.o
>&...
2019 Jan 29
3
lld write wrong symbol value in .data section if enable -pie
...lues in .data section, which have the R_X86_64_64 relocation entries, are all 0. In other word, I found the S in below R_X86_64_64 calculation is 0.
Name: R_X86_64_64
1
word64
S + A
Below is an example to compare the lld and ld, sorry about the verbose.
1. Firstly, I use lld to link a HelloWorld module with -pie enabled:
"/home/jshi19/llvm/releaseinstall/bin/ld.lld" -pie -z relro --hash-style=gnu --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /home/jshi19/wksp_efi/lgao4/edk2/Build/OvmfX64/NOOPT_CLANG38/X64/MdeModulePkg/Application/HelloWorld/HelloWorl...
2014 Jan 22
3
running LXC hello world example
...m/posts/2011/09/27/getting-started-with-lxc-using-libvirt/
Here are the results of my running the tutorial:
[root@terraria ~]# virsh list
Id Name State
----------------------------------------------------
[root@terraria ~]# virsh uri
lxc:///
[root@terraria ~]# cat helloworld.xml
<domain type='lxc'>
<name>helloworld</name>
<memory>102400</memory>
<os>
<type>exe</type>
<init>/bin/sh</init>
</os>
<devices>
<console type='pty'/>
</devices>
</domain...
2005 Jan 04
2
need help
hi
I am trying to install symbian in Redhat Linux machine.I am following the
steps given in the link http://gnupoc.sourceforge.net/HOWTO/ for Nokia
9210.i have win98 as dual os and configured wine as mentioned.
while running helloworld example,helloworld.armi is having a command like
--------------------------------------------------------------------------
wine -- $(EPOCROOT)/epoc32/tools/petran.exe
$(EPOCBLDUREL)/HelloWorld.app $@ \
-nocall -uid1 0x10000079 -uid2 0x100039ce -uid3
0x10008ab0
$(ER...
2006 Jan 12
3
hello World problem
Hi,
I'm trying to build a simple R package 'helloWorld' with just one
function that prints 'hello World' on the C side.
I agree that it is completely useless, but I just start mixing R and C.
My C file is as follows :
#include <stdio.h>
void helloWorld() {
printf("hello world !\n") ;
}
When I call it from R, here is wh...
2019 Jan 29
2
lld write wrong symbol value in .data section if enable -pie
...lues in .data section, which have the R_X86_64_64 relocation entries, are all 0. In other word, I found the S in below R_X86_64_64 calculation is 0.
Name: R_X86_64_64
1
word64
S + A
Below is an example to compare the lld and ld, sorry about the verbose.
1. Firstly, I use lld to link a HelloWorld module with -pie enabled:
"/home/jshi19/llvm/releaseinstall/bin/ld.lld" -pie -z relro --hash-style=gnu --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o /home/jshi19/wksp_efi/lgao4/edk2/Build/OvmfX64/NOOPT_CLANG38/X64/MdeModulePkg/Application/HelloWorld/HelloWorl...
2014 Sep 09
2
[LLVMdev] VMKit is retired (but you can help if you want!)
...est using this version.
>
>
> >
> > 2- COMPILATION: `vmjc` and `llc` to for Java class to native assembly.
> > I do the following, with the same OpenJDK 1.6.0 `javac` command:
> >
> > ==========
> > cd /path/to/vmkit_test-clean/tools/trainer
> > javac HelloWorld.java
> > ../../Release+Asserts/bin/vmjc -print-aot-stats HelloWorld.class
> > /path/to/llvm33/bin/llc
> -load=../../Release+Asserts/lib/static-gc-printer.so HelloWorld.class.bc
> > ==========
> >
> > The `javac` command succeeds, and produces Java classfile
> Hel...
2014 Sep 09
2
[LLVMdev] VMKit is retired (but you can help if you want!)
...native:
* vmjc (Java .class => LLVM bitcode .bc)
* opt (LLVM bitcode optimizer)
* llc (LLVM bitcode => target assembly .s)
* gcc (assemble and link)
Is that "The Right Way"?
After some time hacking various changes, I can use basically that method to compile VMKit/tools/trainer/HelloWorld.java into a linked executable (but it barfs at runtime and I can't fix it).
I'm doing roughly the following, on x86_64, using LLVM3.3, OpenJDK 1.6.0 build 30, a debug build of VMKit (required small build-hacks, which I could describe on request), and the (perhaps-incorrect) edit to `stat...
2011 Sep 29
1
[LLVMdev] Beginner Question on Linking
I am following along in http://llvm.org/docs/GettingStartedVS.html with a
Hello World bitcode file. I can run the file using the command `lli
HelloWorld.bc`, but now I want to link it into an executable file (on
windows). The next thing the document says to run is `llc -filetype=obj
HelloWorld.bc` which runs fine and now I have a `HelloWorld.obj` file. It's
the last step that is giving me some trouble. The command `link hello.obj
-defaultlib:li...
2006 Nov 06
2
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi:
I've been able to compile the attached "helloworld.c" file converted
from "helloworld.cpp".
My question is how does one usually use __main() and CODE_FOR_MAIN()
in tying up with the rest of the code?
Attached here are the original "helloworld.cpp" and "helloworld.c"
files.
Thanks.
Napi
On Sun, 2006-11-05 at 0...
2007 Nov 07
1
A more elegant way of obtaining the major OS release number
...;'... or ''CentOS 4'' without distinguishing between 4.0 or 4.5?
>
> Any feedback you could provide along these lines would be very much
> appreciated. I can''t seem to find a way to do something like:
>
> ===============================
> class osdep-helloworld {
> file { "/etc/helloworld":
> owner => root,
> group => root,
> mode => 443,
> source => $lsbdistrelease ? {
> >=4 =>
> "puppet://puppetmaster.1515.mtvi.com/dist/apps/misc/helloworld-centos-...