Re: assembler in scheme

2012-05-26 Thread Nala Ginrut
Well, speaking this. I have a question that, is there any convenient way to add multi-backend in Guile? We can add multi-frontend in Guile easily. But if we can do so with backend, we may add more interesting things, include assembler you mentioned, and I'm interested in porting the part of GNU K

assembler in scheme

2012-05-26 Thread Stefan Israelsson Tampe
I got an idea, why not design a portable assembler that have a unifying simple core and try to model a VM on that e.g. simple things will be naitive and complex instructions can be dispatched via a named goto. The solution would fix a few registers like the bp and then have enough instructions to

Re: Using labels-as-values on MacOS X

2012-05-26 Thread Hans Aberg
On 26 May 2012, at 14:44, Ludovic Courtès wrote: > Hans Aberg skribis: > >> On 25 May 2012, at 17:31, Ludovic Courtès wrote: >> >>> Ken Raeburn skribis: >>> * Don't use addresses of code labels with LLVM, even if the compiler supports them. At least with the version of LLVM GCC on

Re: Using labels-as-values on MacOS X

2012-05-26 Thread Ludovic Courtès
Hi, Hans Aberg skribis: > On 25 May 2012, at 17:31, Ludovic Courtès wrote: > >> Ken Raeburn skribis: >> >>> * Don't use addresses of code labels with LLVM, even if the compiler >>> supports them. At least with the version of LLVM GCC on my Mac ("gcc >>> version 4.2.1 (Based on Apple Inc. buil