Skip to main content
Visitor II
September 27, 2004
Question

FP library in Cosmic 4k free compiler?

  • September 27, 2004
  • 3 replies
  • 781 views
Posted on September 27, 2004 at 13:14

FP library in Cosmic 4k free compiler?

    This topic has been closed for replies.

    3 replies

    denglarAuthor
    Visitor II
    September 24, 2004
    Posted on September 24, 2004 at 09:06

    Hi everybody,

    I'm a beginner and I found this problem:

    I need some math routines (exp, log, sqrt...) in my C code but I can't use floating point library in my project; also if I try to use ''sprintf'' function, I can use only that one included in ''stdio'' lib (integer version) and not the FP version.

    I'm using ST7VD with Cosmic compiler.

    Could anyone help me?

    Thank you all

    Regards

    Dree

    Visitor II
    September 27, 2004
    Posted on September 27, 2004 at 11:38

    Hi,

    there's no limitation about floating point in the 4k version.

    What error do you get? Make sure you link the fp libraries, see the manual for the details.

    As a last comment, beware of the size of floating point routines; you might easily exceed the 4k limit.

    Regards,

    Luca

    denglarAuthor
    Visitor II
    September 27, 2004
    Posted on September 27, 2004 at 13:14

    Thanks a lot. I thought the linker was already set to link FP libraries, but it wasn't.

    Thank you very much Luca

    Regards

    Dree