Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2018-07

Soft Float for AVR

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dimitrios Chr. Ioannidis

Hi,

AFAIU, the AVR architecture doesn't support floating point variables.

I want to ask if soft float support ( like ARM ) is planned. Does anyone work or plan to work on this ?

regards,

Dimitrios Chr. Ioannidis

Reply by email

Mathias
to Dimitrios Chr. Ioannidis

Hello

The AVR does not support floating-point numbers on the hardware side. The ATtiny does not even support multiplications of Interger. The ATMega supports least multiplications of integers. Divisions do not support everyone.

This refers to the 8-bit AVR, as it looks with the others, I do not know.

mfg Mathias

Dimitrios Chr. Ioannidis wrote 9 lines
Hi,   AFAIU, the AVR architecture doesn't support floating point variables.   I want to ask if soft float support ( like ARM ) is planned. Does anyone work or plan to work on this ? regards,

Reply by email

Christo Crause
to Dimitrios Chr. Ioannidis: AFAIU, the AVR architecture doesn't support floating point variables. I want to ask if…

On Wed, 18 Jul 2018, 14:33 Dimitrios Chr. Ioannidis via fpc-devel, <

Show quoted text 9 lines
wrote: Hi, AFAIU, the AVR architecture doesn't support floating point variables. I want to ask if soft float support ( like ARM ) is planned. Does anyone work or plan to work on this ?

I haven't seen any commits in this regard in the last year or two for AVR. Not sure if someone is working on it offline. I suspect it will be quite a bit of work to generate a compact version for the AVR.

Reply by email

Florian Klämpfl
to Dimitrios Chr. Ioannidis: AFAIU, the AVR architecture doesn't support floating point variables. I want to ask if…
Dimitrios Chr. Ioannidis wrote 5 lines
Hi,   AFAIU, the AVR architecture doesn't support floating point variables.   I want to ask if soft float support ( like ARM ) is planned. Does anyone work or plan to work on this ?

Problem is: the compiler throws internal errors on the softfpu unit. The code is really complex (a lot of 64 bit operations) and the register allocator cannot cope with this.

Reply by email

Florian Klämpfl
Mathias wrote
The Arduino C ++ supports this, but is limited to 32Bit (single).

This does not solve the softfpu problem as it is not ifdef'ed for single support only.

Show quoted text 13 lines
mfg Mathias Am 20.08.2018 um 19:26 schrieb Florian Klämpfl: > Am 18.07.2018 um 14:33 schrieb Dimitrios Chr. Ioannidis via fpc-devel: >> Hi, >> >>    AFAIU, the AVR architecture doesn't support floating point variables. >> >>    I want to ask if soft float support ( like ARM ) is planned. Does anyone work or plan to work on this ? > Problem is: the compiler throws internal errors on the softfpu unit. The code is really complex (a lot of 64 bit > operations) and the register allocator cannot cope with this.

Reply by email