Menu

sphinx in fixed-point processor

Help
Ozan ozan
2011-03-27
2012-09-22
  • Ozan ozan

    Ozan ozan - 2011-03-27

    Hi,
    I am trying to use texas-instruments' TMS320C5505 fixed-point processor to
    embed pocketsphinx. I'm using code composer studio to compile the
    pocketsphinx-continuous. But i have some problems. In "dtoa.c" ı get an error
    as "floating constant is out of range" in these lines;

    static CONST double

    ifdef IEEE_Arith

    bigtens = { 1e16, 1e32, 1e64, 1e128, 1e256 };
    static CONST double tinytens = { 1e-16, 1e-32, 1e-64, 1e-128,

    ifdef Avoid_Underflow

    9007199254740992.9007199254740992.e-256
    /
    = 2^106 * 1e-53 */

    Is the reason that i can't compile it for a fixed-point processor properly. If
    so what should i do?
    Can anybody help about this problem?

     
  • Nickolay V. Shmyrev

    Define Avoid_Underflow in the file header so that instead of very small
    constant 1e-256 a bigger constant 9007199254740992.*9007199254740992.e-256
    will be used

     
  • Ozan ozan

    Ozan ozan - 2011-04-02

    In "prim_type.h" it says "Assume P64 or LP64. If you need to port this to a
    DSP, let us know
    ." I think the type definitions are made for 32 bit
    processors and i have a 16-bit DSP, so what should i change?

     

Log in to post a comment.