[Larceny-users] HOWTO Build Larceny on a 64 Bit Linux System
Jed Davis
jdev at panix.com
Sun Nov 4 02:01:37 EST 2007
On Sun, Nov 04, 2007 at 12:36:07AM -0400, Ray Racine wrote:
> For completeness regarding Ticket 488. To build Larceny on a 64 bit
> system the following the 3 changes are required.
This can also be accomplished, I discovered a couple of weeks ago, by
using a wrapper script to give gcc the -m32, and then running the heap
builds under setarch(8).
The FFI appears to work thereafter, without further personality(2)ing:
> ((foreign-procedure "write" '(int boxed int) 'long) 1 "Hello, World!\n" 56)
&H&e&l&l&o&,& &W&o&r&l&d&!&
56
It is certainly better to have Larceny do the right thing to begin with,
of course, but I thought I'd mention this anyway.
--
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l)))))) (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k))))))) '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))
More information about the Larceny-users
mailing list