Re: [Sdcc-user] A floating-point type cheaper than float

2016-04-14 Thread Alan Cox
> on MCUs without a hardware implementation. On these small MCUs, > fp is slow and I was arguing the only meaningful gain could be > in code size but I don't think there would be much difference in > code size between a short float and regular float implementation. Fpr a lpt of these devices the

Re: [Sdcc-user] A floating-point type cheaper than float

2016-04-14 Thread Alan Cox
On Wed, 13 Apr 2016 00:25:23 + alvin albrecht wrote: > >SDCC currently implements 32-bit float as its only floating-point data type. > >Would you like to see a cheaper one in SDCC, that uses only 16 bits? > >Would you use it? > > > My answer is yes, sort of (fuller explanation below : ) >

Re: [Sdcc-user] A floating-point type cheaper than float

2016-04-14 Thread Philipp Klaus Krause
On 14.04.2016 18:57, Alan Cox wrote: > On Wed, 13 Apr 2016 00:25:23 + > alvin albrecht wrote: > >>> SDCC currently implements 32-bit float as its only floating-point data type. >>> Would you like to see a cheaper one in SDCC, that uses only 16 bits? >>> Would you use it? >> >> >> My answer