home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.forth
- Path: sparky!uunet!math.fu-berlin.de!informatik.tu-muenchen.de!pazsan
- From: pazsan@Informatik.TU-Muenchen.DE (Bernd Paysan)
- Subject: Re: X3J14 Holding Pattern Here
- References: <4187.UUL1.3#5129@willett.pgh.pa.us>
- Originator: pazsan@hphalle5h.informatik.tu-muenchen.de
- Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
- Organization: Technische Universitaet Muenchen, Germany
- Date: Fri, 8 Jan 1993 08:51:35 GMT
- Message-ID: <1993Jan8.085135.29418@Informatik.TU-Muenchen.DE>
- Lines: 47
-
-
- In article <4187.UUL1.3#5129@willett.pgh.pa.us>, ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie) writes:
- |> Category 10, Topic 12
- |> Message 195 Sun Dec 13, 1992
- |> ELLIOTT.C at 20:44 EST
- |>
- |> -----via CRS Premium Bulletin Board -
- |> USR Dual Standard 16.8K (416) 629-7000
- |>
- |> Date: 12-07-92 (01:40)
- |> To: ALL
- |> From: MARCEL HENDRIX
- |> Subj: VALUE
- |>
- |> Re Changes in dpANS-3 (Bernd Paysan):
- |>
- |> bp> 8. VALUE changed to take an initial argument from the stack
- |> bp> (like CONSTANT)
- |>
- |> I hope we'll get some background on this. Of course, it is now
- |> reversed to the way it is in F-PC and like everybody else has
- |> had it for a decade, but the previous dpANS proposal was better
- |> with respect to ROMmability (IMHO). I suppose now we'll have to
- |> put in code ( a chain? ) to initialize all VALUE's when the
- |> system boots from ROM.
-
- Hm, I don't see were the problem is. Every object in Unix, TOS or MS-DOS has
- (at least) three parts: The TEXT (initialized, but unchanged at runtime) which
- could stay in ROM, the DATA (initialized, but possibly modified at runtime),
- which is copied to RAM at boot time and the BLOCK STORAGE, (uninitialized or
- initialized to zero and modified while running) which is only allocated and
- erased at boot time. Target compiling for ROM means then: Use two buffers
- (one for DATA, one for TEXT), and generate addresses for DATA space when
- CREATE, VARIABLE or CONSTANT (and switch to RAM or DATA allocation
- scheme until the next CODE or COLON definition).
-
- |> Does this mean that VARIABLE's and CREATE structures may be
- |> initialized too (I know the committee doesn't want to think
- |> about ROMmability yet, but...)
-
- I prefer VARIABLES and CREATE structures to be initialized at target compile
- time. Sometimes my CREATE structures are more likely to be constants than
- variables (i.e. an uppercase converting table), then I use LABEL to get
- the address.
- --
- Bernd Paysan
- "Late answers are wrong answers!"
-