Hello all,

I am involved with a GCC port where i have to add fixed point support to C 
based on the fixed point extension of DSP-C specification.

So intially i thought that i will typedef long or short to support the new data 
type.
But for my hardware the fixed point registers are 48 bit long. So idea to 
typedef is not good.
So i thought i will use a structure or an array for this purpose.
But it again had problems like for instance supporting 
signed,unsigned,longm,short format of the new data type _fixed. This is not 
possible if i use structures.

Can you suggest some solution for this.
The format for my hardware is  s7.40
Should i go for adding a new data type in the front end?

I am new to GCC internals.So any help that you can offer is of great value for 
me.


Regards,
Shafi.












Reply via email to