Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #32943

Re: ANS Forth test programs

From "Rod Pemberton" <dont_use_email@xnothavet.cqm>
Newsgroups comp.lang.forth
Subject Re: ANS Forth test programs
Date 2014-08-16 04:43 -0400
Organization Aioe.org NNTP Server
Message-ID <op.xkofvf0e6zenlw@localhost> (permalink)
References (15 earlier) <cf1379ea-3034-4d2f-bb87-ddff06e1a890@googlegroups.com> <53ec8c47.175756872@news.demon.co.uk> <2e2a3476-c02b-4e82-87ef-4a1759bc992c@googlegroups.com> <53edcb36.23349808@news.demon.co.uk> <44610cf4-4001-4037-919a-f8ec61c6455b@googlegroups.com>

Show all headers | View raw


On Sat, 16 Aug 2014 00:07:26 -0400, <hughaguilar96@yahoo.com> wrote:

> To simulate the execution of a processor, is done by opcode
> emulation
...

> (typically with a CASE statements).

I'd say that's very common, but other methods do abound.
I'm not sure it qualifies as "typically".

> You state that you do simulate the execution of the target processor,
> but that opcode emulation is not necessary. WTF??? Do you simulate
> the execution of the target processor or not? I asked for clarification,
> and you gave me two contradictory statements

Yes, it's hard to follow whatever you two are babbling about ...

Even so, a cross-compiler or meta-compiler, be it C or Forth,
does not absolutely need to simulate the target processor.
It simply generates code for a target different from the host.
The intended target must execute or run the emitted code, i.e.,
copy it over and then run it.

> --- just a lot of waffle.

... which goes good with syrup.  OMG!  Did I actually post that?
WTF, it must be "The Hugh Effect".  (Amazing, that's yet another
Star Trek TNG reference in reply to Hugh by RP!  Wow...)

> When you say that I'm wrong, you imply that I've never written a  
> cross-compiler and that I'm just speculating on how it is done.
> That isn't true; I wrote MFX. I'm not wrong --- I can tell you
> with certainty that it is not necessary to simulate the execution
> of the target processor to cross-compile code for the target processor.

Logically, that does not follow.  (non-sequitur)

The fact that it is not necessary in your case, doesn't mean
it wasn't necessary in his case.

It's possible that an optimization phase is easier to implement
with simulation, therefore "necessary", i.e., simpler, e.g.,
optimizing the timing of target code on the host would need
simulation for code execution.

> Earlier in this thread we had Alex McDonald totally baffled as
> to why using the data stack as the control stack is a problem,
> and why this requires me to hold my data in local variables in
> my meta-compiling words.

C does it.  So, why is it a problem?  ...  FYI, C saves control
flow and data on the same stack.  This is true for the vast,
vast majority of C implementations.  Officially, a stack is not
required by the C specifications, and isn't actually needed
to implement C.  It is useful to implement recursion.

Yes, I'm totally baffled here as well.  Are you beginning
to consider that perhaps something ... is ... wrong? ...
E.g., maybe what you meant to say, or thought you said in
your head, and what you actually wrote means something else
to everyone else?

Perhaps a phrase like "in Forth" is missing, or "when using
standard Forth return stack manipulation words" is missing,
or "due to the push/pop nature of Forth's data stack versus
the direct access typically used in C" is missing, etc.


Rod Pemberton

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-03 23:34 +0100
  Re: ANS Forth test programs mhx@iae.nl - 2014-08-03 22:33 -0700
    Re: ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-04 08:47 +0100
      Re: ANS Forth test programs "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-08-04 05:10 -0400
        Re: ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-05 17:33 +0100
      Re: ANS Forth test programs stephenXXX@mpeforth.com (Stephen Pelc) - 2014-08-21 16:01 +0000
        Re: ANS Forth test programs anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-08-21 16:20 +0000
          Re: ANS Forth test programs stephenXXX@mpeforth.com (Stephen Pelc) - 2014-08-21 21:47 +0000
            Re: ANS Forth test programs anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-08-22 12:33 +0000
          Re: ANS Forth test programs albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-08-22 19:23 +0000
        Re: ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-22 12:28 +0100
          Re: ANS Forth test programs "Alex McDonald" <blog@rivadpm.com> - 2014-08-22 13:35 +0100
            Re: ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-22 17:11 +0100
          Re: ANS Forth test programs anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-08-22 12:47 +0000
    Re: ANS Forth test programs Bernd Paysan <bernd.paysan@gmx.de> - 2014-08-04 14:26 +0200
      Re: ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-05 17:35 +0100
        Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-05 20:06 -0700
          Re: ANS Forth test programs "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-08-06 16:43 -0400
          Re: ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-07 10:23 +0100
            Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-07 18:29 -0700
              Re: ANS Forth test programs "Alex McDonald" <blog@rivadpm.com> - 2014-08-07 23:28 -0700
                Re: ANS Forth test programs Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-08-08 04:25 -0500
                Re: ANS Forth test programs Raimond Dragomir <raimond.dragomir@gmail.com> - 2014-08-08 08:08 -0700
                Re: ANS Forth test programs Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-08-08 10:49 -0500
                Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-08 19:54 -0700
                Re: ANS Forth test programs anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-08-08 16:27 +0000
                Re: ANS Forth test programs Raimond Dragomir <raimond.dragomir@gmail.com> - 2014-08-08 10:47 -0700
                Re: ANS Forth test programs Coos Haak <chforth@hccnet.nl> - 2014-08-08 22:34 +0200
                Re: ANS Forth test programs Raimond Dragomir <raimond.dragomir@gmail.com> - 2014-08-08 21:06 -0700
                Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-08 23:59 -0700
                Re: ANS Forth test programs Raimond Dragomir <raimond.dragomir@gmail.com> - 2014-08-09 01:35 -0700
                Re: ANS Forth test programs Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-08-09 04:41 -0500
                Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-09 17:53 -0700
                Re: ANS Forth test programs Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-08-10 03:25 -0500
                Re: ANS Forth test programs Raimond Dragomir <raimond.dragomir@gmail.com> - 2014-08-10 03:19 -0700
                Re: ANS Forth test programs Mikael Nordman <oh2aun@gmail.com> - 2014-08-10 05:28 -0700
                Re: ANS Forth test programs Raimond Dragomir <raimond.dragomir@gmail.com> - 2014-08-12 22:43 -0700
                Re: ANS Forth test programs stephenXXX@mpeforth.com (Stephen Pelc) - 2014-08-13 09:46 +0000
                Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-13 21:17 -0700
                Re: ANS Forth test programs stephenXXX@mpeforth.com (Stephen Pelc) - 2014-08-14 10:24 +0000
                Re: ANS Forth test programs "Alex McDonald" <blog@rivadpm.com> - 2014-08-14 12:10 +0100
                Re: ANS Forth test programs Raimond Dragomir <raimond.dragomir@gmail.com> - 2014-08-14 06:02 -0700
                Re: ANS Forth test programs stephenXXX@mpeforth.com (Stephen Pelc) - 2014-08-14 23:48 +0000
                Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-14 20:06 -0700
                Re: ANS Forth test programs stephenXXX@mpeforth.com (Stephen Pelc) - 2014-08-15 09:13 +0000
                Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-15 21:07 -0700
                Re: ANS Forth test programs Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-08-16 02:22 -0500
                Re: ANS Forth test programs "Rod Pemberton" <dont_use_email@xnothavet.cqm> - 2014-08-16 04:43 -0400
                Re: ANS Forth test programs stephenXXX@mpeforth.com (Stephen Pelc) - 2014-08-16 20:37 +0000
                Re: ANS Forth test programs BruceMcF <agila61@netscape.net> - 2014-08-12 16:55 -0700
                Re: ANS Forth test programs Raimond Dragomir <raimond.dragomir@gmail.com> - 2014-08-12 22:47 -0700
                Re: ANS Forth test programs "Alex McDonald" <blog@rivadpm.com> - 2014-08-13 10:43 +0100
                Re: ANS Forth test programs bruce.mcfarling@gmail.com - 2014-08-16 10:02 -0700
                Re: ANS Forth test programs anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-08-09 11:09 +0000
                Re: ANS Forth test programs Lars Brinkhoff <lars.spam@nocrew.org> - 2014-08-09 13:34 +0200
                Re: ANS Forth test programs Bernd Paysan <bernd.paysan@gmx.de> - 2014-08-09 21:45 +0200
                Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-08 13:39 -0700
                Re: ANS Forth test programs "Alex McDonald" <blog@rivadpm.com> - 2014-08-10 03:21 +0100
                Re: ANS Forth test programs "Bill Leary" <Bill_Leary@msn.com> - 2014-08-08 10:34 -0400
              Re: ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-08 10:18 +0100
                Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-08 12:48 -0700
                Re: ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-08 21:46 +0100
                Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-08 14:14 -0700
                Re: ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-08 23:06 +0100
                Re: ANS Forth test programs Coos Haak <chforth@hccnet.nl> - 2014-08-09 00:40 +0200
                Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-08 18:17 -0700
  Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-06 14:50 -0700
    Re: ANS Forth test programs Gerry Jackson <gerry@jackson9000.fsnet.co.uk> - 2014-08-07 10:12 +0100
      Re: ANS Forth test programs hughaguilar96@yahoo.com - 2014-08-07 16:07 -0700
  Re: ANS Forth test programs francois.ganza@wanadoo.fr - 2014-08-08 13:40 -0700

csiph-web