search for: gafferuk

Displaying 20 results from an estimated 29 matches for "gafferuk".

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 example. >> Thanks. >> >> char *cCode; // the char array >> // fill array with code goes here... >>...
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 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 2:50 AM, gafferuk <gafferuk...
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,...
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 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. > > &gt...
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... > > > // Initialize a compiler invoc...
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 > > applicat...
2010 Aug 14
2
[LLVMdev] clang: compile c code from char array?
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... // Initialize a compiler invocation object from the clang (-cc1) arguments. const driver::ArgStringList &CCArgs = Cmd->getArguments(); llvm::OwningPtr<CompilerInvocation> CI(new CompilerInvocation);
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 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 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 d...
2010 Aug 18
1
[LLVMdev] clang: call extern function using JIT
...eGenAction> Act(new EmitLLVMOnlyAction()); if (!Clang.ExecuteAction(*Act)) return 1; int Res = 255; if (llvm::Module *Module = Act->takeModule()) { Res = Execute(Module, envp); } // Shutdown. llvm::llvm_shutdown(); return Res; } gafferuk wrote: > > 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...
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 line 154, LowerInvoke.cpp > > any ideas? > -- View this message in c...
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.
2010 Aug 15
0
[LLVMdev] clang: call application function
...1, llvm::Type::getDoubleTy(llvm::getGlobalContext())); llvm::FunctionType *FT = llvm::FunctionType::get(llvm::Type::getVoidTy(llvm::getGlobalContext()), Double, false); llvm::Function *F = llvm::Function::Create(FT, llvm::Function::ExternalLinkage); EE->addGlobalMapping(F, yipee); gafferuk wrote: > > 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-tp29439756p29440979.htm...
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.
2010 Aug 18
0
[LLVMdev] clang: call extern function using JIT
...;runFunctionAsMain(EntryFn, Args, envp); } // here the C code to be ran with JIT ------------------------------------------------------------------- int main() { int dd = yipee(1); return 1; } ----------------------------------------------------------------------------------------------- gafferuk wrote: > > 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 app...
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 line 154, LowerInvoke.cpp > > any ideas? > -- View this message in c...
2010 Aug 18
3
[LLVMdev] clang: call extern function using JIT
> when I run my app the compiler says: > E:\Projects\Whistle\Whistle\Release>Whistle file.c > file.c(3) :  warning: implicit declaration of function 'yipee' is invalid in > C99 > >      [-Wimplicit-function-declaration] >    int dd = yipee(1); >             ^ This way you're creating a call to variadic function. It's of different type compared to function
2010 Aug 18
0
[LLVMdev] clang: call extern function using JIT
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? Anton Korobeynikov-2 wrote: > >> when I run my app the compiler says: >> E:\Projects\Whistle\Whistle\Release>Whistle file.c >> file.c(3) :  warning: implicit declaration of function 'yipee' is invalid >> in >> C99 >>
2010 Aug 19
1
[LLVMdev] how to runFunction? passing in an int
I wish to run a function passing in an int value of 5 as a single parameter. can you please complete the code as all the examples I can find are old. llvm::Function *EntryFn = Mod->getFunction("createModule"); if (!EntryFn) { return 255; } else { EE->runFunction(EntryFn, ???????); } Thank you! -- View this message in context: