hth313 / Calypsi-tool-chains

Overview of the Calypsi tool chain and open source support packages
16 stars 0 forks source link

Fixed Point support #27

Open djipi opened 1 year ago

djipi commented 1 year ago

Few compilers support such type, the gcc supports it but for a couple of CPU which are not related to the Motorola family.

Do you have plan to support it in the future?

For the Calypsi compiler, such support could be limited to a signed Q16.16 format which is suitable for the 68000.

hth313 commented 1 year ago

At the moment I do not have any plans to support fixed point. I am not aware how common support for fix point is, whether Clang (which is the front end used) supports it and how it would affect the backend.

djipi commented 1 year ago

Thank you for your feedback.

The Fixed Point is not widely available among the compilers, fortunately we can found library to handle the fixed (such as libfixmath).

So far I know llvm/Clang started a support for fixed point in 2018, but I do not know about their status.