search for: tobnu

Displaying 8 results from an estimated 8 matches for "tobnu".

Did you mean: tobi
2004 Jul 17
2
[LLVMdev] Scheme compiler.
...is working on a C API to the LLVM IR classes. Given > a C-style API, it will definitely be callable from LLVM code (that's kinda > the point of Patrick's work). Maybe he can say some more about where this > stands? Ok, I look forward to it! > > [1] http://www.ida.liu.se/~tobnu/compile.ss > > This is very neat. If you put together a little web page for it, and send > me a blurb, I would be very happy to add this to the projects page. :) Ok, here you go, http://www.ida.liu.se/~tobnu/scheme2llvm/ (what's a blurb? :) > As you continue development on it...
2004 Jul 17
0
[LLVMdev] Scheme compiler.
...mories my Ph.d work is supposed to be > about :). The scheme compiler is just a small hack for now so that I can > easely understand and debug later on. But maybe I'll get obsessed. :) Sounds good. Hopefully you can even improve what we have :) > > > [1] http://www.ida.liu.se/~tobnu/compile.ss > > > > This is very neat. If you put together a little web page for it, and send > > me a blurb, I would be very happy to add this to the projects page. :) > > Ok, here you go, > > http://www.ida.liu.se/~tobnu/scheme2llvm/ Looks great! > (what's...
2004 Jul 17
2
[LLVMdev] Scheme compiler.
...c) call functions in llvm for creation of basic blocks and instructions, instead of using text format? (See under "LLVM primitives" in the scheme code.). I'll try to read up on how to use the JIT facilities, but I won't say no to any hints :). , Tobias [1] http://www.ida.liu.se/~tobnu/compile.ss
2004 Jul 17
0
[LLVMdev] Scheme compiler.
...y. I believe that Patrick (among other things) is working on a C API to the LLVM IR classes. Given a C-style API, it will definitely be callable from LLVM code (that's kinda the point of Patrick's work). Maybe he can say some more about where this stands? > [1] http://www.ida.liu.se/~tobnu/compile.ss This is very neat. If you put together a little web page for it, and send me a blurb, I would be very happy to add this to the projects page. :) As you continue development on it, would you be interested in integrating this into the LLVM tree? -Chris -- http://llvm.cs.uiuc.edu/ htt...
2004 Jun 14
4
[LLVMdev] Memory Alignment, Heap allocation.
...les in the scheme-function. It would perhaps be nicer if I could use the call frames instead, but I can't since lambdas in it can escape when the frame is popped of the stack, for example: (lambda (x) (lambda (z) (+ x z))) ; the inner lambda is returned. Regards, Tobias [1] www.ida.liu.se/~tobnu/compile.ss Can currently for example compile and run: (compiler '((lambda (x y z) (if (seteq (car (cdr (cons x (cons y 3)))) z) (add 1 0) (sub 2 1))) 1 2 2)) [2] Structure and Interpretation of Computer Program...
2004 Jun 14
0
[LLVMdev] Memory Alignment, Heap allocation.
...on's stack still exists after the function already returns). Passing a pointer may look a little kludgy, but it is correct and should be fine. -- John T. > > (lambda (x) (lambda (z) (+ x z))) ; the inner lambda is returned. > > Regards, Tobias > > [1] www.ida.liu.se/~tobnu/compile.ss > > Can currently for example compile and run: > > (compiler '((lambda (x y z) > (if (seteq (car (cdr (cons x (cons y 3)))) z) > (add 1 0) > (sub 2 1))) > 1 2 2)) > > [2...
2004 Jun 14
0
[LLVMdev] Memory Alignment, Heap allocation.
On Mon, 14 Jun 2004, Tobias Nurmiranta wrote: > A small question: How do I ensure memory alignment? I want all malloced > memory, globals and functions to be 4-byte aligned. Does llvm have any > ".align" keyword? In the medium term, we plan to add alignment requirements to the alloca/malloc instructions and to globals (vars/functions) but we do not have this yet. Currently
2004 Jul 17
3
[LLVMdev] Scheme compiler.
On Sat, 17 Jul 2004, Chris Lattner wrote: > > http://www.ida.liu.se/~tobnu/scheme2llvm/ > > Looks great! > > > (what's a blurb? :) > > Just a summary, so that I can add an entry to this page: > http://llvm.cs.uiuc.edu/ProjectsWithLLVM/ Maybe this for now: "This is a small self applicable scheme compiler for LLVM. The code is quite simil...