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


Groups > comp.lang.forth > #26552

Re: A problem with gforth-fast

From Bernd Paysan <bernd.paysan@gmx.de>
Newsgroups comp.lang.forth
Subject Re: A problem with gforth-fast
Date 2013-10-15 17:09 +0200
Organization 1&1 Internet AG
Message-ID <l3jlrv$huu$1@online.de> (permalink)
References (4 earlier) <MImdnXkWs-Frn8TPnZ2dnUVZ8iadnZ2d@supernews.com> <2013Oct14.191716@mips.complang.tuwien.ac.at> <w--dnRhMSaYys8HPnZ2dnUVZ_rKdnZ2d@supernews.com> <2013Oct15.115028@mips.complang.tuwien.ac.at> <2013Oct15.153544@mips.complang.tuwien.ac.at>

Show all headers | View raw


Anton Ertl wrote:

> anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>>And given that spTOS is not clobbered by calls in general, but only by
>>a few transcendental functions, it seems that gcc mostly gets this
>>right.  But not always.  I'll look into that later.
> 
> Ok, now I did.  I started with the current git, and I had to disable
> two workarounds: The new TOS_CLOBBERED flag and the older one (in
> test/float.fs) that tests whether certain FP words clobber the TOS
> (and then explicit registers are disabled automatically).

In older 3.x GCCs, using eax, ecx, or edx failed with an error message.  
That error message went away with GCC 4.2, and the resulting code "mostly" 
worked, which gave me the impression that the GCC team finally had managed 
to caller-save user-allocated registers.  But apparently not...

> With gcc-4.6.3 I indeed get TOS in ecx:

I don't have such an old GCC anymore; can you test if it's possible to use 
%ebp on gcc-4.6.3 instead of %ecx?

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

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


Thread

A problem with gforth-fast humptydumpty <ouatubi@gmail.com> - 2013-10-11 02:51 -0700
  Re: A problem with gforth-fast Bernd Paysan <bernd.paysan@gmx.de> - 2013-10-11 17:00 +0200
    Re: A problem with gforth-fast humptydumpty <ouatubi@gmail.com> - 2013-10-11 08:54 -0700
    Re: A problem with gforth-fast Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-10-11 10:57 -0500
      Re: A problem with gforth-fast Bernd Paysan <bernd.paysan@gmx.de> - 2013-10-11 18:49 +0200
        Re: A problem with gforth-fast Bernd Paysan <bernd.paysan@gmx.de> - 2013-10-11 21:08 +0200
          Re: A problem with gforth-fast humptydumpty <ouatubi@gmail.com> - 2013-10-11 12:54 -0700
            Re: A problem with gforth-fast Bernd Paysan <bernd.paysan@gmx.de> - 2013-10-11 23:21 +0200
              Re: A problem with gforth-fast humptydumpty <ouatubi@gmail.com> - 2013-10-11 23:58 -0700
        Re: A problem with gforth-fast Bernd Paysan <bernd.paysan@gmx.de> - 2013-10-11 21:30 +0200
        Re: A problem with gforth-fast Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-10-12 03:06 -0500
          Re: A problem with gforth-fast Bernd Paysan <bernd.paysan@gmx.de> - 2013-10-12 15:50 +0200
          Re: A problem with gforth-fast anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-10-14 17:17 +0000
            Re: A problem with gforth-fast Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-10-14 12:49 -0500
              Re: A problem with gforth-fast anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-10-15 09:50 +0000
                Re: A problem with gforth-fast Andrew Haley <andrew29@littlepinkcloud.invalid> - 2013-10-15 07:48 -0500
                Re: A problem with gforth-fast anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-10-15 13:35 +0000
                Re: A problem with gforth-fast Bernd Paysan <bernd.paysan@gmx.de> - 2013-10-15 17:09 +0200
                Re: A problem with gforth-fast anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-10-16 16:36 +0000

csiph-web