Skip to content

Instantly share code, notes, and snippets.

@master-q
Created February 11, 2013 10:26
Show Gist options
  • Save master-q/4753700 to your computer and use it in GitHub Desktop.
Save master-q/4753700 to your computer and use it in GitHub Desktop.
Try CHICKEN.
$ csc -version
(c)2008-2012 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.8.0 (rev 0db1908)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2012-09-24 on debian (Linux)
Enter `chicken -help' for information on how to use the compiler,
or try `csc' for a more convenient interface.
Run `csi' to start the interactive interpreter.
$ cat foo.scm
;;; foo.scm
(define (fac n)
(if (zero? n)
1
(* n (fac (- n 1))) ) )
(write (fac 10))
(newline)
$ csc foo.scm
$ ./foo
3628800
$ ldd foo
linux-vdso.so.1 (0x00007ffff88d2000)
libchicken.so.6 => /usr/lib/libchicken.so.6 (0x00007fc6ad7aa000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc6ad477000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc6ad272000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc6aceca000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc6adde0000)
$ size foo
text data bss dec hex filename
6692 1000 128 7820 1e8c foo
$ size /usr/lib/libchicken.so.6
text data bss dec hex filename
4008077 338212 59392 4405681 4339b1 /usr/lib/libchicken.so.6
@master-q
Copy link
Author

とりあえずlibchicken.so.6の中身を調べるべきだな。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment