Re: a plan for native compilation

2010-04-22 Thread Andy Wingo
Hi Ken, On Wed 21 Apr 2010 19:02, Ken Raeburn raeb...@raeburn.org writes: On Apr 18, 2010, at 07:41, Andy Wingo wrote: Specifically, we should make it so that there is nothing you would want to go to a core file for. Compiling Scheme code to native code should never produce code that

Re: a plan for native compilation

2010-04-21 Thread Ken Raeburn
On Apr 18, 2010, at 07:41, Andy Wingo wrote: Specifically, we should make it so that there is nothing you would want to go to a core file for. Compiling Scheme code to native code should never produce code that segfaults at runtime. All errors would still be handled by the catch/throw

Re: a plan for native compilation

2010-04-18 Thread Ludovic Courtès
Hi, Ken Raeburn raeb...@raeburn.org writes: It would be awesome if GDB could display this information when debugging a process, *and* when looking at a core file. Actually, GDB has some Guile support (‘set language scheme’), although it works only with 1.6 and partly with 1.8 (because tags

Re: a plan for native compilation

2010-04-17 Thread Andy Wingo
Greets, On Sat 17 Apr 2010 01:15, l...@gnu.org (Ludovic Courtès) writes: Andy Wingo wi...@pobox.com writes: So, my thought is to extend procedures with an additional pointer, a pointer to a native code structure. (So your point is what should we do now to allow for such experiments

Re: a plan for native compilation

2010-04-17 Thread Ludovic Courtès
Hi, Andy Wingo wi...@pobox.com writes: It's a shame that GCC has not been able to support LLVM's level of innovation, I don’t think innovation is the problem (did you read the 4.5 release notes?). However, it’s been too much of a monolithic compiler, unlike LLVM, although plug-ins will now

Re: a plan for native compilation

2010-04-17 Thread Ken Raeburn
Good stuff, Andy! On Apr 16, 2010, at 07:09, Andy Wingo wrote: Currently, Guile has a compiler to a custom virtual machine, and the associated toolchain: assemblers and disassemblers, stack walkers, the debugger, etc. One can get the source location of a particular instruction pointer, for

Re: a plan for native compilation

2010-04-16 Thread No Itisnt
One option I am really starting to like is LLVM. I know what you're thinking, huge memory consumption, giant dependency, etc, but it's so cool! It supports every desktop architecture too.

Re: a plan for native compilation

2010-04-16 Thread Ludovic Courtès
Howdy! Andy Wingo wi...@pobox.com writes: So, my thought is to extend procedures with an additional pointer, a pointer to a native code structure. (So your point is what should we do now to allow for such experiments eventually, right?) Adding an extra work to programs seems like a good