OK, turing.

<- leave blank

Sat Jan 13 06:05:53 EST 2018

:glenda@cirno:/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme; mk
echo '#define sexp_default_module_path "'/sys/lib/chibi-scheme'"' >
include/chibi/install.h
echo '#define sexp_so_extension ".no-such-file"' >> include/chibi/install.h
echo '#define sexp_platform "plan9"' >> include/chibi/install.h
echo '#define sexp_version "'`{cat VERSION}'"' >> include/chibi/install.h
echo '#define sexp_release_name "'`{cat RELEASE}'"' >>
include/chibi/install.h
6c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 gc.c
6c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 sexp.c
6c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 bignum.c
6c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 opcodes.c
6c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 plan9.c
6c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 vm.c
6c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 simplify.c
6c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 eval.c
6c -p -Iinclude -DPLAN9 -DSEXP_USE_GREEN_THREADS=0 main.c
6l -o 6.out gc.6 sexp.6 bignum.6 opcodes.6 plan9.6 vm.6 simplify.6 eval.6 main.6
:glenda@cirno:/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme; ./6.out
test.scm
6.out 5824: suicide: sys: trap: fault read addr=0x411fcfd0 pc=0x22a9f0
:glenda@cirno:/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme; cat
test.scm

;; Hello world in R7RS Scheme.

(import (scheme base)
	(scheme write))

(display "Hello, world!")
(newline)
:glenda@cirno:/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme; acid 5824
/proc/5824/text:amd64 plan 9 executable
/sys/lib/acid/port
/sys/lib/acid/amd64
acid: lstk()
sexp_env_cell_loc(ctx=0x414940,key=0x411fcfd0,env=0x417c70,localp=0x7fff00000001,varenv=0x0)+0x94
/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme/eval.c:111
	ls=0x23e
sexp_env_cell(env=0x417c70,key=0x411fcfd0,localp=0x1)+0x2e
/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme/eval.c:121
sexp_env_define(env=0x417c70,key=0x411fcfd0,ctx=0x414940,value=0x418100)+0x5e
/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme/eval.c:177
	res=0x43e
sexp_make_null_env_op(ctx=0x414940)+0x111
/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme/eval.c:2177
	e=0x417c70
	__sexp_gc_preserver1=0x7ffffeffec58
	core=0x418100
	__sexp_gc_preserver2=0x7ffffeffec40
	i=0x2347fa00000008
sexp_make_primitive_env_op(ctx=0x414940,version=0xf)+0x123
/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme/eval.c:2187
	e=0x43e
	__sexp_gc_preserver1=0x7ffffeffed00
	op=0x43e
	__sexp_gc_preserver2=0x7ffffeffece8
	sym=0x43e
	__sexp_gc_preserver3=0x7ffffeffecd0
	name=0x43e
	__sexp_gc_preserver4=0x7ffffeffecb8
	i=0x22c3c700000000
sexp_make_eval_context(ctx=0x0,size=0x0,max_size=0x0,env=0x0,stack=0x0)+0x38b
/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme/eval.c:520
	res=0x414940
	__sexp_gc_preserver1=0x0
do_init_context(ctx=0x7ffffeffee58,heap_size=0x0,heap_max_size=0x0,fold_case=0x0,env=0x7ffffeffee00)+0x33
/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme/main.c:263
run_main(argc=0x2,argv=0x7ffffeffef88)+0x271
/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme/main.c:539
	prefix=0x0
	suffix=0x0
	main_symbol=0x0
	main_module=0x0
	quit=0x0
	init_loaded=0x0
	mods_loaded=0x0
	fold_case=0x0
	nonblocking=0x0
	heap_size=0x0
	heap_max_size=0x0
	out=0x3e
	ctx=0x0
	tmp=0x43e
	__sexp_gc_preserver1=0x0
	sym=0x43e
	__sexp_gc_preserver2=0x0
	args=0x23e
	__sexp_gc_preserver3=0x0
	env=0x0
	__sexp_gc_preserver4=0x0
	arg=0x7ffffeffefa8
	i=0x1
	ls=0x0
	print=0x0
	c=0x0
	impmod=0x236889
	j=0x100000000
main(argc=0x2,argv=0x7ffffeffef88)+0x20
/mnt/term/home/j/dev/apps/plan9/custom/lisp/chibi-scheme/main.c:651
_main+0x40 /sys/src/libc/amd64/main9.s:15
acid: