Skip to main content
Visitor II
August 30, 2004
Question

IEEE754-compliant floating-point routines in asm

  • August 30, 2004
  • 3 replies
  • 836 views
Posted on August 30, 2004 at 05:35

IEEE754-compliant floating-point routines in asm

    This topic has been closed for replies.

    3 replies

    chris7Author
    Visitor II
    August 27, 2004
    Posted on August 27, 2004 at 12:43

    Hi,

    Does anyone know of a standard implementation of the IEEE754 floating point routines for the ST7 and would be willing to point me in the right direction?

    Kindest regards,

    Chris.
    Visitor II
    August 27, 2004
    Posted on August 27, 2004 at 14:10

    Chris,

    the floating point routines are too heavy load for a simple microcontroller like the ST7!

    Its hardware can only afford unsigned multiplication while unsigned division has to be done by a software routine.

    If you need the basic floating point operations, try to encode your data in a fixed point representation and use integer operations to ''simulate'' the floating point ones.

    Regards,

    EtaPthi
    Visitor II
    August 30, 2004
    Posted on August 30, 2004 at 05:35

    Hi,

    The Cosmic compiler/libraries provide this implementation, including the source code for all operations (mostly asm for the basic operations, mostly C for the complex ones).

    Hope this helps.

    Regards,

    Luca (Cosmic)