Main Menu

Forums SwiftForth Forum Floating Point instability

This topic contains 1 reply, has 1 voice, and was last updated by  rogerlevy 1 month, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15807

    rogerlevy
    Participant

    Been wrestling with this for years. From time to time it pops up without warning or reason. FPMATH seems unstable. I get FLOAT_STACK_CHECK (at ROUNDING+21) at seemingly random times when an fp word is called. Literally just rearranging source can fix it. There is a chance it’s my fault, I am/was doing a few “weird” fp-related things directly with assembly (I eliminated one known culprit) but I was just wondering if anyone else has run into this.

    #15808

    rogerlevy
    Participant

    Btw, I am calling a lot of foreign functions that use floats. If I call /NDP after one that puts the system in the buggy state where it throws the aforementioned error any time the float stack is accessed, it seems to “fix” it. Of course, I shouldn’t have to do that…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.