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


Groups > comp.lang.forth > #59469

Re: matrix multiplication

From rickman <gnuarm@gmail.com>
Newsgroups comp.lang.forth
Subject Re: matrix multiplication
Date 2017-05-18 03:48 -0400
Organization A noiseless patient Spider
Message-ID <ofjjdm$50c$1@dont-email.me> (permalink)
References <de96ca50-66d1-4518-a2a5-103dac0bebfb@googlegroups.com> <591cceaa.641127994@news.eternal-september.org> <5f88751f-c8d3-40ae-b3ae-6674a1f161bd@googlegroups.com> <ofjhtk$mp$1@dont-email.me> <a45c1192-07b0-4be4-bf5c-189c366a4247@googlegroups.com>

Show all headers | View raw


On 5/18/2017 3:29 AM, krishna.myneni@ccreweb.org wrote:
> On Thursday, May 18, 2017 at 2:22:39 AM UTC-5, rickman wrote:
> ...
>> It wouldn't be the program.  Your program is written to run on either
>> type of system.  ...
>
> By program or application, I mean the Forth source, not the Forth environment. In the case of mmul.4th, it is written for an integrated data/fp stack. The word df_mmul will not work properly on a Forth system with a separate fp stack. It's a trivial mod to alter it to work with an fp_stack.

I gave some consideration once to the issues in writing a program to run 
on a system with an integrated stack.  Because of the potential 
difference in size of floating point data from the data stack width, I 
realized the only way to do so would be to work with floating point and 
other data entirely separately removing one from the top of stack before 
working with the other.  Trying to use stack manipulation instructions 
with both types of data is not possible if you don't know how many data 
stack cells the floating point data will use.

If the two types of data are essentially not mixed on the stack, the 
code should run on both types of systems.

How did you structure your stack usage that precludes working on a 
system with a separate stack?  I assume you must have made assumptions 
about the number of cells floating point data will use on the data stack?

-- 

Rick C

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


Thread

matrix multiplication krishna.myneni@ccreweb.org - 2017-05-17 15:13 -0700
  Re: matrix multiplication stephen@mpeforth.com (Stephen Pelc) - 2017-05-17 22:31 +0000
    Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-17 15:39 -0700
      Re: matrix multiplication rickman <gnuarm@gmail.com> - 2017-05-18 03:22 -0400
        Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-18 00:29 -0700
          Re: matrix multiplication rickman <gnuarm@gmail.com> - 2017-05-18 03:48 -0400
          Re: matrix multiplication anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-18 08:42 +0000
  Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-18 00:25 -0700
    Re: matrix multiplication anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-19 15:13 +0000
      Re: matrix multiplication anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-19 17:26 +0000
        Re: matrix multiplication Alex <alex@rivadpm.com> - 2017-05-19 18:56 +0100
        Re: matrix multiplication Paul Rubin <no.email@nospam.invalid> - 2017-05-19 21:48 -0700
        Re: matrix multiplication anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-20 10:21 +0000
          Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-20 06:12 -0700
          Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-20 09:47 -0700
            Re: matrix multiplication Paul Rubin <no.email@nospam.invalid> - 2017-05-20 15:31 -0700
              Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-21 04:46 -0700
                Re: matrix multiplication mhx@iae.nl - 2017-05-21 13:41 -0700
                Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-21 15:32 -0700
            Re: matrix multiplication anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-21 07:19 +0000
              Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-21 05:10 -0700
                Re: matrix multiplication anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-21 14:29 +0000
                Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-21 09:17 -0700
      Re: matrix multiplication stephen@mpeforth.com (Stephen Pelc) - 2017-05-19 20:54 +0000
      Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-19 14:33 -0700
        Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-19 16:12 -0700
        Re: matrix multiplication anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-05-20 14:48 +0000
    Re: matrix multiplication krishna.myneni@ccreweb.org - 2017-05-19 18:38 -0700

csiph-web