+2004-08-05 Rhys Weatherley <rweather@southern-storm.com.au>
+
+ * doc/Makefile.am, doc/README, doc/libjit.texi,
+ jit/jit-dump.c, jit/jit-insn.c: documentation updates.
+
2004-08-04 Rhys Weatherley <rweather@southern-storm.com.au>
* jit/jit-opcode.c: fix the operand types for "call_vtable_ptr".
$(srcdir)/libjitext-apply.texi \
$(srcdir)/libjitext-block.texi \
$(srcdir)/libjitext-context.texi \
+ $(srcdir)/libjitext-dump.texi \
$(srcdir)/libjitext-dynlib.texi \
$(srcdir)/libjitext-elf-read.texi \
$(srcdir)/libjitext-except.texi \
$(srcdir)/libjitext-context.texi: $(top_srcdir)/jit/jit-context.c
$(SHELL) $(srcdir)/extract-docs.sh $< >$@
+$(srcdir)/libjitext-dump.texi: $(top_srcdir)/jit/jit-dump.c
+ $(SHELL) $(srcdir)/extract-docs.sh $< >$@
+
$(srcdir)/libjitext-dynlib.texi: $(top_srcdir)/jitdynamic/jit-dynlib.c
$(SHELL) $(srcdir)/extract-docs.sh $< >$@
--- /dev/null
+
+To generate HTML documentation, use the following command in the
+"libjit/doc" directory:
+
+ mkdir outdir
+ ./mkhtml.sh outdir
+
+where "outdir" is the name of the directory to place the generated
+HTML files in.
+
+To generate PDF documentation, use the following command in the
+"libjit/doc" directory:
+
+ ./mkpdf.sh
+
+This will generate "libjit.pdf". You will need to have PDFTeX installed
+to do this.
* Exceptions:: Handling exceptions
* ELF Binaries:: Manipulating ELF binaries
* Utility Routines:: Miscellaneous utility routines
+* Debugging Routines:: Debugging routines
* C++ Interface:: Using libjit from C++
* Porting:: Porting libjit to new architectures
* Why GPL?:: Why we use GPL and not LGPL for libjit
@c -----------------------------------------------------------------------
-@node Utility Routines, C++ Interface, ELF Binaries, Top
+@node Utility Routines, Debugging Routines, ELF Binaries, Top
@chapter Miscellaneous utility routines
@cindex Utility routines
@cindex jit-util.h
@c -----------------------------------------------------------------------
-@node C++ Interface, C++ Contexts, Utility Routines, Top
+@node Debugging Routines, C++ Interface, Utility Routines, Top
+@chapter Debugging routines
+@cindex Debugging routines
+
+@include libjitext-dump.texi
+
+@c -----------------------------------------------------------------------
+
+@node C++ Interface, C++ Contexts, Debugging Routines, Top
@chapter Using libjit from C++
@cindex Using libjit from C++
#include "jit-interp.h"
#endif
+/*@
+
+@cindex jit-dump.h
+
+@*/
+
/*@
* @deftypefun void jit_dump_type ({FILE *} stream, jit_type_t type)
* Dump the name of a type to a stdio stream.
/*@
* @deftypefun void jit_insn_store (jit_function_t func, jit_value_t dest, jit_value_t value)
* Store the contents of @code{value} at the location referred to by
- * @code{dest}.
+ * @code{dest}. The @code{dest} should be a @code{jit_value_t} representing a
+ * local variable or temporary. Use @code{jit_insn_store_relative} to store
+ * to a location referred to by a pointer.
* @end deftypefun
@*/
int jit_insn_store(jit_function_t func, jit_value_t dest, jit_value_t value)