similar to: [LLVMdev] clang: compile c code from char array?

Displaying 20 results from an estimated 600 matches similar to: "[LLVMdev] clang: compile c code from char array?"

2010 Aug 15
2
[LLVMdev] clang: compile c code from char array?
no, does not help, ive already looked at it. none none-17 wrote: > > This thread may help: > http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-June/009507.html > > On Sun, Aug 15, 2010 at 2:50 AM, gafferuk <gafferuk at gmail.com> wrote: > >> >> Hi, how do I compile c code from a char array in clang? >> >> Im using code from the interpreter
2010 Aug 15
0
[LLVMdev] clang: compile c code from char array?
This thread may help: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-June/009507.html On Sun, Aug 15, 2010 at 2:50 AM, gafferuk <gafferuk at gmail.com> wrote: > > Hi, how do I compile c code from a char array in clang? > > Im using code from the interpreter example. > Thanks. > > char *cCode; // the char array > // fill array with code goes here... > > >
2010 Aug 15
0
[LLVMdev] clang: compile c code from char array?
I don't know how ccons works, but it may do what you need. http://code.google.com/p/ccons/ Le 15 août 2010 à 14:48, gafferuk a écrit : > > no, does not help, ive already looked at it. > > > > none none-17 wrote: >> >> This thread may help: >> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-June/009507.html >> >> On Sun, Aug 15, 2010 at
2010 Aug 18
1
[LLVMdev] clang: call extern function using JIT
Heres my full code listing, im totally stuck. // Whistle.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "clang/CodeGen/CodeGenAction.h" #include "clang/Driver/Compilation.h" #include "clang/Driver/Driver.h" #include "clang/Driver/Tool.h" #include
2010 Aug 18
2
[LLVMdev] clang: call extern function using JIT
gafferuk <gafferuk at gmail.com> writes: > Im confused. The function i wish to call is a return type of int. > Im calling it with int dd = yipee(1); > > What's wrong? Declare the function: int yipee(int); int main() { int dd = yipee(1); return 0; } If that still crashes, put a breakpoint on `yipee' and see if the execution gets there, if the argument is
2010 Aug 18
0
[LLVMdev] clang: call extern function using JIT
I tried what you said, now I get: LLVM ERROR: Program used external function 'yipee' which could not be resolved! Stack dump: 0. Running pass 'X86 Machine Code Emitter' on function '@main' did not even get as far as a breakpoint. Óscar Fuentes wrote: > > gafferuk <gafferuk at gmail.com> writes: > >> Im confused. The function i wish to call is
2013 Oct 03
0
[LLVMdev] libclang JIT frontend
Hi, I'm not sure if this is a libclang, llvm::cl or clang-interpreter issue so I'll try posting here for a response. I am using libclang as a frontend to the LLVM JIT (3.3 release). I started from the clang-interpreter example and have everything working (given a C/C++ source file I can have it JIT'd to memory and executed) for a single run. When I try to compile a second source
2012 Mar 25
2
build postfix rpm with mysql
hello list, I'm trying to build a postfix rpm that has mysql support included. I've found the line where I need to define mysql support but it seems that I am being tripped up by some build dependencies: [root at beta SPECS]# rpmbuild -ba postfix.spec error: Failed build dependencies: MySQL-shared is needed by postfix-2.9.1-1.rhel5.x86_64 MySQL-devel is needed by
2016 Sep 09
2
defaults for FP contraction [e.g. fused multiply-add]: suggestion and patch to be slightly more aggressive and to make Clang`s optimization settings closer to having the same meaning as when they are given to GCC [at least for "-O3"]
Dear all, In the process of investigating a performance difference between Clang & GCC when both compile the same non-toolchain program while using the "same"* compiler flags, I have found something that may be worth changing in Clang, developed a patch, and confirmed that the patch has its intended effect. *: "same" in quotes b/c the essence of the problem is that the
2016 Sep 11
3
defaults for FP contraction [e.g. fused multiply-add]: suggestion and patch to be slightly more aggressive and to make Clang`s optimization settings closer to having the same meaning as when they are given to GCC [at least for "-O3"]
On Sep 10, 2016, at 3:33 AM, Steve Canon <scanon at apple.com> wrote: >>> >>> Pretty much. In particular, imagine a user trying to debug an unexpected floating point result caused by conversion of a*b + c into fma(a, b, c). >> >> I think that’s unavoidable, because of the way the optimization levels work. Even fma contraction is on by default (something I’d
2011 Nov 19
4
build postfix spec w/ mysql
hello list! I am attempting to build an rpm of postfix that includes support for mysql. I've done this before with earlier versions on postfix but I am staring at this spec file until my eyes bleed and I just don't see why when I build the spec with rpmbuild mysql support isn't there. After I install the rpm I have a look at the modules as such: ldd $(which postfix) | grep -i
2007 Dec 26
2
Principal Components Analysis
Hi, I do have a file that has 500000 columns and 40 rows. I want to apply PCA on that data and this is what I did h1<-read.table("Ccode.txt", sep='\t', header=F) # reads the data from the file Ccode.txt h2<-prcomp(na.omit(h1),center=T) but I am getting the following error "Error in svd(x, nu = 0) : 0 extent dimensions" I appreciate if someone can help
2009 Nov 20
1
how to link C code with gsl from R CMD and dyn.load
Hi, I am writing a function in C that is meant to be called by R. In the C function, I used a gsl function gsl_stats_mean. The code is as simple as below void gsl(double *m, int *dim){ int r, c; r = dim[0]; c = dim[1]; double mean = gsl_stats_mean(&m[0], 1, r); Rprintf("mean = %f\n", mean); } The C code is succesfully compiled and the output is as follows. $ R CMD SHLIB
2010 Aug 13
4
[LLVMdev] errors when compiling with visual studio 10
im compiling llvm with visual studio 10. I have used cmake build app. visual studio 10 is complaining about error c2039: 'setjmp' : is not a member of llvm::Intrinsic its line 154, LowerInvoke.cpp any ideas? -- View this message in context: http://old.nabble.com/errors-when-compiling-with-visual-studio-10-tp29427176p29427176.html Sent from the LLVM - Dev mailing list archive at
2010 Aug 17
4
[LLVMdev] clang: call extern function using JIT
hi, im creating a music application(image below). At the moment im using tcc compiler but im moving across to clang because of the improved compiler warnings. Can anyone please explain and show code so I can use clang's JIT to call functions in my application? Thanks. http://old.nabble.com/file/p29449300/51709341.jpeg -- View this message in context:
2010 Aug 14
2
[LLVMdev] clang: call application function
im using code from the clang interpreter example. what code do I need to add so I can call functions in my main application? Thanks. Paul. -- View this message in context: http://old.nabble.com/clang%3A-call-application-function-tp29439756p29439756.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2007 Aug 10
2
Re: Embedding int32's within threora & vorbis files
Thanks for the info, been looking at OggPCM wiki, but where can I get at the source? I can't use cvs on this machine so a direct link would be great.
2007 Aug 12
1
Re: Embedding int32's within threora & vorbis files
What do you want to use OggPCM for? Why not use AU or WAV? I can only see an advantage in using OggPCM if you want it annotated using CMML or want to mix it with another codec, such as Theora. Cheers, Silvia. On 8/11/07, Paul Griffiths <gafferuk@gmail.com> wrote: > Paul Griffiths <gafferuk <at> gmail.com> writes: > > > > > > > Thanks for the info, been
2010 Aug 18
2
[LLVMdev] clang: call extern function using JIT
gafferuk <gafferuk at gmail.com> writes: > Can someone pease tell me what I am doing wrong? It is hard to say because you don't say what the problem is, but let's try. > Im trying to register an external function with the JIT, so can call > functions in my music > > application. > > Here my function > > int Execute(llvm::Module *Mod, char * const *envp)
2010 Aug 13
0
[LLVMdev] errors when compiling with visual studio 10
also within visual studio, when i compile a window pops up saying that CMake has regenerated 29.sln files. and do i want to reload them? is this normal. what should I do? gafferuk wrote: > > im compiling llvm with visual studio 10. I have used cmake build app. > > visual studio 10 is complaining about error c2039: 'setjmp' : is not a > member of llvm::Intrinsic > its