Displaying 20 results from an estimated 400 matches similar to: "[LLVMdev] How to call C++ code from LLVM"
2009 Jun 19
0
[LLVMdev] How to call C++ code from LLVM
On Thu, Jun 18, 2009 at 3:57 PM, Jules Jacobs<julesjacobs at gmail.com> wrote:
> How can I call C++ libraries (LLVM & Qt for example) from a language that's
> implemented on top of LLVM?
You can call them the same way a C++ file compiled with llvm-g++ would
call them. Essentially, it's complicated enough that you probably
don't want to do it for any interface of
2009 Jun 20
0
[LLVMdev] How to call C++ code from LLVM
Sorry could you help me? I have problem with using LLVM and some code in C
(.so file)
I want to use (simply example):
mylib.c:
#include <stdio.h>
void printString(char *str) {
printf("%s", str);
}
mylib.h:
#ifndef MY_LIB_HEADER
#define MY_LIB_HEADER
void printString(char* X);
#endif
///////////////////////////////////////
Normally in C++ I do this:
g++ -fPIC -c mylib.c
2011 Sep 12
2
[LLVMdev] llvm-gfortran problems
Hmm.. I didn't explain the problem completely last time. I am creating a
drop-in replacement for gcc and gfortran that runs an additional pass on the
bitcode before generating the native binary. Here's whats happening: If the
source code compilation process builds a static library (.a archive file), I
need a means to link the `.a' file statically into the application. So if
the
2011 Sep 12
0
[LLVMdev] llvm-gfortran problems
I see. And what's the purpose for outputting bitcode into *.o and *.a
files? Do you want to perform an LLVM pass on linking step?
2011/9/13 Ashay Rane <ashay.rane at tacc.utexas.edu>:
> Hmm.. I didn't explain the problem completely last time. I am creating a
> drop-in replacement for gcc and gfortran that runs an additional pass on the
> bitcode before generating the native
2011 Sep 12
1
[LLVMdev] llvm-gfortran problems
No, I am running the LLVM pass at the compilation step. So by the time I
reach the link step, the transformed bitcode has been generated.
Ashay
On Mon, Sep 12, 2011 at 4:12 PM, Dmitry N. Mikushin <maemarcus at gmail.com>wrote:
> I see. And what's the purpose for outputting bitcode into *.o and *.a
> files? Do you want to perform an LLVM pass on linking step?
>
> 2011/9/13
2011 Sep 12
0
[LLVMdev] llvm-gfortran problems
Sorry, at what step do you need archive? llc emits binary, it does not
perform any linking, thus it does not need anything except the input
bytecode file. Then during linking you can link whatever archives of
binaries you want.
2011/9/13 Ashay Rane <ashay.rane at tacc.utexas.edu>:
> Thats correct. But using llc becomes a problem when I have archives (.a
> files). I could, in theory,
2008 Oct 17
1
[LLVMdev] [Need your help]
Hi,
This is Crystal. I have some questions about llvm-gcc. Could you please give me some advice? Thanks in advance.
Problem description:
Env:
llvm-gcc (GCC) 4.2.1
gcc (GCC) 4.1.2
OS:fedora7
I tried to compile a C programme test.c with llvm-gcc by task:
[root at localhost mylib]# llvm-gcc -emit-llvm test.c -Llibmylib.a -c -o test.bc
[root at localhost mylib]# lli test.bc
after running the command
2011 Sep 12
2
[LLVMdev] llvm-gfortran problems
Thats correct. But using llc becomes a problem when I have archives (.a
files). I could, in theory, extract its contents to a tempdir and then use
llc and link but just wondering if there is a more elegant solution.
Ashay
On Mon, Sep 12, 2011 at 3:00 PM, Dmitry N. Mikushin <maemarcus at gmail.com>wrote:
> Ashay,
>
> If I understand correctly, in hw.o you would have llvm
2004 Jun 25
2
Sweave: R code in self defined TeX-commands
Hi,
I need to produce a standard report for several variables in Sweave
and thus would need the possibility to define a TeX-command which includes
R-code like
\newcommand{\meansd}[1]{The mean is \Sexpr{mean(#1)} and the standard
deviation is \Sexpr{sd(#1)} .
}
and then just write
\meansd{age}
in the latex code to get the whole sentence.
The above does not work, since
2004 Oct 18
3
how to study the code of R
i want to study R programming by studying the existing code from R itself,but
i don't know how to read the code,can any one give me some guide?
my R is installed in /usr/lib/R/
[ronggui at mylinux ronggui]$ /usr/lib/R/
afm bin doc etc include library modules share
> version
_
platform i586-mandrake-linux-gnu
arch i586
os linux-gnu
system i586,
1999 Oct 07
2
Tree connect failed: ERRSRV - ERRbadpw (2nd try)
Hi all together,
all answers to my first posting didn't help to solve my
problem.
Maybe this can help you.
When I'm doing: smbclient -L MYLINUX -U MYUSER
I get the following message:
Added interface ip=195.90.254.xxx broadcast=295.90.254.255
nmask=255.255.255.0
Password: <enter password for myuser>
Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 2.0.5a]
Tree connect failed: ERRSRV -
2008 Feb 10
2
View() + "End" key on Ubuntu=segfault
I can repeatably crash R (segfault)
by doing
n <- 10
z <- data.frame(a=1:n,b=1:n)
View(z)
and then hitting the "End" key on my keyboard.
I haven't got debugging going yet, but running under
gdb (without debugging symbols) does give this:
0xb7b63583 in strlen () from /lib/tls/i686/cmov/libc.so.6
R version 2.6.2 (2008-02-08)
i486-pc-linux-gnu
[Ubuntu Gutsy]
locale:
2009 Jan 10
2
Problem with compiling shared C/C++ library for loading into R (Linux)
I am using the .Call interface to call c++ code from R. For that, I am
trying to create a dynamic library (mylib.so)
using "R CMD SHLIB" by linking my own c++ code and an external c++
library (blitz++).
The makefile works fine on my Mac, produces mylib.so and I am able to
call .Call() from R, but on a linux
server (I think Debian), I got the following error:
----------
/usr/bin/ld:
2009 Jan 10
2
Problem with compiling shared C/C++ library for loading into R (Linux)
I am using the .Call interface to call c++ code from R. For that, I am
trying to create a dynamic library (mylib.so)
using "R CMD SHLIB" by linking my own c++ code and an external c++
library (blitz++).
The makefile works fine on my Mac, produces mylib.so and I am able to
call .Call() from R, but on a linux
server (I think Debian), I got the following error:
----------
/usr/bin/ld:
2001 Dec 05
3
trouble with R CMD INSTALL for building my own library
Hi,
I have built a library that consists of a piece of C code and some R
functions.
To build it into a library that I can load using library() command, I
have followed "Writing R Extensions"
and made sub-directories such as mylib/R and mylib/src. But when I run R
CMD INSTALL mylib, nothing seems to
be happening with src directory, i.e., no C compiling. I have probably
missed
some key
2001 Dec 05
3
trouble with R CMD INSTALL for building my own library
Hi,
I have built a library that consists of a piece of C code and some R
functions.
To build it into a library that I can load using library() command, I
have followed "Writing R Extensions"
and made sub-directories such as mylib/R and mylib/src. But when I run R
CMD INSTALL mylib, nothing seems to
be happening with src directory, i.e., no C compiling. I have probably
missed
some key
2012 Jun 01
1
Error: package 'myLib' is not installed for 'arch=i386'
Hello,
I 'd like to use some functions in myLib. So I do:
library(myLib)
Then I get this message:
Error: package 'myLib' is not installed for 'arch=i386'
> sessionInfo()
R version 2.13.2 (2011-09-30)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252
LC_MONETARY=French_France.1252 LC_NUMERIC=C
2011 Sep 14
1
Building R package with precompiled shared library
Dear R users,
we are trying to build a R package that includes a precompiled shared
library, let's say mylib.so. We created the skeleton of the package
and we moved the mylib.so file into the libs folder that we created at
the same level of the folders man and R. Moreover we created the file
NAMESPACE and we added the line useDynLib(mylib, .registration=TRUE).
The building step seems to work
2010 Jan 26
1
library.dynam
hi, i'm having some trouble getting a package to load a shared library
object in .onLoad(...)
i have a shared object file, say "mylib.so".
if i start an R session, and via the CLI specify the actual library
via:
> dyn.load("mylib.so")
everything works quite well (i.e. i can then follow with some .Call
(...) methods)
now, i'd like to include this shared library in
2016 Jun 19
2
llvm-bjdump and ELF-ARM/Thumb
Hi Everyone,
When I used llvm-objdump to disassemble an ELF armv7 or thumb I have this error message:
llvm-objdump: warning: invalid instruction encoding
This message appears directly into the output and the output is mostly wrong (the invalid instruction create a shift in the addresses) :
1a6d: ff 2f e1 08 stmeq r1!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, sp} ^
1a71: 30