New to GCC: Qifist

aleksazr
2012-12-04
2013-06-06
  • aleksazr
    aleksazr
    2012-12-04

    I'm new to x86 GCC (but have been using it with ARM).

    How do I make GCC use the FIST(P) instruction?

    I've searched the net and it seems that is not possible, everyone suggests
    using SSE which I know nothing about, so I'd prefer 387 mnemonics.

    MSVC has /Qifist option for that, and I've been using that for a long time,
    so I know the Qifist impact on compatibility.

    BTW, I'm using mingw-w32-bin_i686-mingw_20111219.zip

     
  • aleksazr
    aleksazr
    2012-12-04

    BTW, I've downloaded 4.7.2. from here.
    Still, I don't know how to make it use FISTP.

    Also, 4.7.2 doesn't output source lines in the LST file, whereas the 4.7.0 does.
    What could that be?

     
  • aleksazr
    aleksazr
    2012-12-06

    OK, I've got it:

    static inline int rndint (double value)
    {
    return lrint(value);
    }

    The problem of source lines not being outputed to the LST file still remains.