[Tinyos-commits] CVS: tinyos-1.x/tos/lib/VM/languages/motlle/doc motlle.txt, 1.5, 1.6

David Gay idgay at users.sourceforge.net
Tue Nov 22 15:57:04 PST 2005


Update of /cvsroot/tinyos/tinyos-1.x/tos/lib/VM/languages/motlle/doc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12496

Modified Files:
	motlle.txt 
Log Message:
floating point desc


Index: motlle.txt
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/tos/lib/VM/languages/motlle/doc/motlle.txt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** motlle.txt	22 Nov 2005 23:54:55 -0000	1.5
--- motlle.txt	22 Nov 2005 23:57:02 -0000	1.6
***************
*** 104,107 ****
--- 104,132 ----
  while TinyScheme library functions are found in directonies named sgen.
  
+ 1.1 Building a VM with floating-point support
+ ---------------------------------------------
+ 
+ The default motlle.vmsf configuration given above has 15-bit integers only.
+ If you replace
+   <SEARCH PATH="../mate/rep-16">
+ by
+   <SEARCH PATH="../mate/rep-float">
+ and 
+   <LOAD FILE="../mate/runtime/gen/intfns.vmsf">
+ by
+   <LOAD FILE="../mate/runtime/gen/floatfns.vmsf">
+ in your .vmsf file, you get 16-bit integers and 32-bit floating-point
+ numbers, at the cost of approximately double RAM usage for your
+ data structures.
+ 
+ Finally, by default, transcendental (sin, cos, tan, etc) and other 
+ miscellaneous (sqrt, expt) procedures are not included. If you want all of
+ these, add
+   <LOAD FILE="../mate/runtime/gen/transcendentalfns.vmsf">
+ to your .vmsf file. Or you can include these procedures individually by
+ adding
+   <FUNCTION name=mXXX>
+ lines to your .vmsf file, where XXX=sin, cos, etc.
+ 
  2) Running MOTLLE programs
  ==========================



More information about the Tinyos-commits mailing list