Fixed the compiler, got the disassembler working.
authorLudovic Court`es <ludovic.courtes@laas.fr>
Wed, 27 Apr 2005 09:36:52 +0000 (09:36 +0000)
committerLudovic Courtès <ludo@gnu.org>
Fri, 25 Apr 2008 17:09:30 +0000 (19:09 +0200)
commitfa19602c28cf4a6d54860e98b3c4379b3a058d37
treec33383692afb4b7ded15137b759f0b608647dcf7
parent054599f117f12ea183167c46b62c18cd590181c4
Fixed the compiler, got the disassembler working.

* doc/guile-vm.texi:  Texified and cleaned up.
* src/vm.c:  Use `scm_from_locale_string ()' instead of `scm_makfrom0str ()'.
* src/vm_engine.c:  Likewise.
* src/programs.c (scm_program_bytecode):  Return a u8vector instead of a string.
* module/system/vm/conv.scm (make-byte-decoder):  Fixed a few things wrt. to
  the string to u8vector transition.
* src/objcodes.c (bytecode->objcode):  Fixed a bug where the last 10 bytes of
  the bytecode where ignored.
* module/system/vm/assemble.scm (dump-object!):  Don't convert everything
  to a u8vector, keep strings where it makes sense.
* module/system/vm/conv.scm (code->bytes):  Accordingly, convert strings to
  u8vectors when needed.
  (make-byte-decoder):  Accordingly too, when decoding instructions, return
  variable-length instructions' argument as strings except for `load-program'.
* module/system/vm/disasm.scm:  Export `disassemble-bytecode'.

git-archimport-id: lcourtes@laas.fr--2004-libre/guile-vm--revival--0.6--patch-4
doc/guile-vm.texi
module/system/vm/assemble.scm
module/system/vm/conv.scm
module/system/vm/disasm.scm
src/instructions.c
src/objcodes.c
src/programs.c
src/vm.c
src/vm_engine.c