home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / forth / 3079 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.8 KB

  1. Path: sparky!uunet!gatech!pitt!willett!ForthNet
  2. From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
  3. Newsgroups: comp.lang.forth
  4. Subject: ANS TC Magnet for ROMability
  5. Message-ID: <4038.UUL1.3#5129@willett.pgh.pa.us>
  6. Date: 4 Sep 92 11:20:45 GMT
  7. Organization: EIEI-U
  8. Lines: 66
  9.  
  10. Category 10,  Topic 22
  11. Message 84        Thu Sep 03, 1992
  12. ELLIOTT.C                    at 12:07 EDT
  13.  
  14.  -----via CRS Premium Bulletin Board
  15.  
  16.  Date: 08-29-92 (03:09)
  17.    To: B.RODRIGUEZ2 [BRAD]
  18.  From: MARCEL HENDRIX
  19.  Subj: Cross-CompilingOR ROMABIL
  20.  
  21.  Brad Rodriguez writes about ANS Forth Translators:
  22.  
  23.  br>       definitions.  As a minimum, the words
  24.  br>        :  ALLOT  CONSTANT  CREATE  IMMEDIATE  VARIABLE
  25.  br>       from the Core word set must be available
  26.  interpretively
  27.  br>       to create Forth programs.  The arithmetic and stack
  28.  br>       operators, and such words as
  29.  br>        '  ,  C,
  30.  
  31.  The idea is very good, I particularly like the master stroke to
  32.  differentiate between cross-compiling and translating.
  33.  
  34.  I'm not sure if you're proposal includes meta-compilation, that
  35.  is, generating a complete working Forth interpreter for cpu a on
  36.  platform b, using a xx Forth program running on cpu t on
  37.  platform u.
  38.  
  39.  The process of meta compilation needs the ability to manipulate
  40.  headers of both host and target words. Your proposals do not
  41.  mention headers anywhere, so maybe a ``cross-compiler'' just
  42.  generates a executable program for any hardware? (but note that
  43.  this might include an outer interpreter and thus could need
  44.  headers).
  45.  
  46.  I'm positively terrified that names like C, : ; become
  47.  officially accepted as *meta* compilation word names. A meta
  48.  ``:'' is completely different in concept from the host Forth
  49.  ``:'' and the programmer should never (want) to forget this
  50.  (He'll need both in a truly universal system). In t/iForth we
  51.  use TC, T: and T; (among others), but at least two other meta
  52.  compilers adopt a similar convention (F83, F-PC).
  53.  
  54.  An ordinary user will expect a Translator to let her build a
  55.  completely new Forth system of her own design (why not?) but as
  56.  soon as she starts defining : ; for the new system, she'll get
  57.  dreadful conceptual problems (most users *I* know anyway).
  58.  
  59.  The problem can be resolved if it is officially stated that an
  60.  ANS Forth System is not required to be able to completely
  61.  regenerate itself. The translator need then not support the
  62.  above features. Of course the last three lines should be a joke.
  63.  
  64.  Marcel Hendrix,
  65.  Dutch Transputer Forth Workshop
  66.  
  67.  PCRelay:OLEF -> #181 RelayNet (tm)
  68.  4.11            OLEF BBS London England. +(44)-81-882-7353
  69.  
  70.  
  71. -----
  72. This message came from GEnie via willett.  You *cannot* reply to the author
  73. using e-mail.  Please post a follow-up article, or use any instructions
  74. the author may have included (USMail addresses, telephone #, etc.).
  75. Report problems to: dwp@willett.pgh.pa.us
  76.