home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 11 / CDACTUAL11.iso / cdactual / demobin / share / os2 / MST / DOC / README.OS2 < prev    next >
Encoding:
Text File  |  1995-06-29  |  6.0 KB  |  136 lines

  1. This is a port of GNU Smalltalk (mst) 1.1.1 for OS/2.
  2.  
  3.  
  4.  
  5. GNU Smalltalk was written by Steve Byrne (sbb@eng.sun.com). All credits
  6. for it should go to him.
  7.  
  8.  
  9.  
  10. For general information about GNU Smalltalk see the readme file.
  11. For information about the license granted to operate this program, see
  12. the file COPYING.
  13.  
  14.  
  15. The source code for GNU Smalltalk can be obtained from the usual GNU mirrors.
  16. The original GNU site is prep.ai.mit.edu ( I think), but however don't use this
  17. unless you really have to, as I think it is pretty much used already. I am
  18. sorry, but I don't know anymore addresses.
  19.  
  20.  
  21. If you expect from GNU Smalltalk something like the commercial
  22. visual programming enviromnents, you will be disappointed. As of now, mst
  23. is purely command line oriented. But it is also not a memory hog as some of
  24. these systems are. And it is of course much cheaper.
  25.  
  26. The port was done using emx 0.9a.
  27.  
  28. The filenames used are shortend for usage with FAT compared to the original
  29. ones. If you have a HPFS drive and wish to have longer and more descriptive
  30. filenames run hpfsname.cmd in the kernel directory. If you do this,
  31. you HAVE to start mst with the -L switch. I have added this for long filenames.
  32. If you grow tired of using this switch, you can rename the kernel files back
  33. to FAT length by running fatname.cmd, also located in the kernel directory.
  34. If you want to copy the files from a HPFS drive to a FAT drive, or want to
  35. rezip and send them somewhere else, I STRONGLY recommend renaming them back to
  36. FAT names!
  37.  
  38. You have to unpack mstos2.zip from the root directory of the drive where you
  39. want to have it. mst expects to finds its kernel .st files in /mst/kernel.
  40. If hey aren't there you have to set SMALLTALK_KERNEL to the appropriate path.
  41. Also mst looks for image files in /mst/bin and /mst/image. I actually compiled
  42. it only for /mst/image, but it still creates, and luckily finds them, in
  43. /mst/bin. If you want it to look for the someplace else, you will have to set
  44. SMALLTALK_IMAGE correspondingly.
  45.  
  46.  
  47. Installing GNU Smalltallk for OS/2
  48. ----------------------------------
  49.  
  50. Unzip the mstos2.zip file from the root dir of the drive where you want to have
  51. it (see above paragraph). If you want are on a HPFS drive and want to use long
  52. file names change to the /mst/kernel directory and run hpfsnames.cmd. If you do
  53. this, you have to pass the -L parameter when calling mst. If you are on a FAT
  54. drive or don't wnat to use long names, you don't need to do anything.
  55. Now change to the /mst/bin directory and run mst.exe. If you have renamed the
  56. kernel files, you must use the -L parameter, otherwise mst will not be able
  57. to find some of its vitally needed kernel files and will only produce garbage.
  58. mst will now start some more or less heavy acticity on your harddisk. This
  59. is completely normal. It just creates its image from the .st files in /mst/bin.
  60. After a short while something like "GC flipping to space one" and a bit more
  61. will appear on the screen followed by "st>" two lines below it. "st>" is mst's
  62. prompt. You can now start to program in Smalltalk. You can exit mst by typing
  63. Ctrl-Z at a prompt. If you don't know how to program Smalltalk, you should have
  64. a look at the file /mst/doc/tutorial.doc. It is a tutorial for the Smalltalk
  65. language using mst. Note however, that you must use Ctrl-Z and not as stated
  66. in the tutorial Ctrl-D. After having first started mst you will have a file
  67. called mst.im in the /mst/bin directory. This is mst's image file. You can move
  68. it to the /mst/image dir. mst will find it there, but it will also find it in
  69. /mst/bin. If you want to have the image someplace else, set the environment
  70. variable SMALLTALK_IMAGE to the path you want. If you have the kernel files
  71. (*.st) somewhere other than /mst/kernel, you have to set the SMALLTALK_KERNEL
  72. environment variable.
  73.  
  74. If mst doesn't start for the first time:
  75. ----------------------------------------
  76. If mst complains about not being able to find some .st files, one or more of
  77. the following (or even some other) things are responsible:
  78. - You have named the .st files to long (HPFS) filenames and have forgotten to
  79.   start mst with the -L flag.
  80. - You have the .st files with FAT filenames and have started mst with the -L
  81.   flag.
  82. - You don't have the kernel files. Get them!
  83. - You have placed the kernel files somewhere else then /mst/kernel. Either
  84.   put them there, or set the SMALLTALK_KERNEL environment variable to the path
  85.   where you put them.
  86.  
  87. If you have found another reason, and what to do about it, email me about it,
  88. and I will include it here.
  89.  
  90.  
  91. Command line syntax
  92. -------------------
  93. Well, not much here really. mst is a very simple concerning the command line.
  94.  
  95.     mst [ flag ... ] [ file ...]
  96.  
  97. Flags can appear either as -xyz or as -x -y -z.  The currently
  98. defined set of flags is:
  99.   -c\tDump core on fatal signal",
  100.   -d\tTrace compilation of user specified files
  101.   -D\tTrace compilation of kernel and user files
  102.   -e\tTrace execution of files specified on command line
  103.   -E\tTrace execution of kernel and user files
  104.   -H -h -?  Print this message and exit
  105.   -i\tIgnore the image file; rebuild it from scratch
  106.   -I file\tUse 'file' as the image file, instead of 'mst.im'
  107.   -p\tRun Smalltalk as a 'process', i.e. from within GNU Emacs
  108.   -q\tRun Smalltalk without printing execution information
  109.   -r\tRun in regression test mode (printed messages are made constant)
  110.   -v\tPrint the Smalltalk version number
  111.   -V\tEnable verbose mode
  112.   -y\tTurn on debugging in the parser
  113.   -L\tUse long HPFS filenames
  114.   - --\tRead input from standard input explicitly
  115.  
  116. The "-L" flag was added by me for use on OS/2. See above for meaning.
  117.  
  118.  
  119. Noticed problems and bugs
  120. -------------------------
  121. When pressing Ctrl-Z on the first empty prompt, mst complains about a
  122. "parse" error, but exits nonetheless. I don't know what causes this.
  123.  
  124.  
  125.  
  126. I hope everything worked as I planned it. I wish you much fun when using
  127. GNU Smalltalk on OS/2.
  128.  
  129.  
  130. Timm Morten Steinbeck
  131. timm@gaillimh.tng.oche.de
  132.  
  133. PS: Please don't ask me how to program Smalltalk. I am learning it myself.
  134.  
  135.  
  136.