Forum > Embedded - AVR
Real types
julkas:
Any plans to implement real types for AVR target?
ccrause:
--- Quote from: julkas on January 15, 2020, 10:25:49 am ---Any plans to implement real types for AVR target?
--- End quote ---
I guess it is not a high priority. To check what is/isn't working try to compile softfpu.pp for AVR.
d.ioannidis:
Hi,
--- Quote from: julkas on January 15, 2020, 10:25:49 am ---Any plans to implement real types for AVR target?
--- End quote ---
You can read the responses I got at the devel list with the same question back at 2018 ...
"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."
One can hope that some day will have real types for avr also ...
regards,
Thaddy:
--- Quote from: julkas on January 15, 2020, 10:25:49 am ---Any plans to implement real types for AVR target?
--- End quote ---
You mean float types?
Real is a distinct Pascal type, unlike C. Do not confuse the two.
The code that ccrause mentions works depending on bitness (e.g. comment out anything above the bitness of your particular AVR)
Thaddy:
--- Quote from: Dimitrios Chr. Ioannidis on January 15, 2020, 01:35:43 pm ---"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."
--- End quote ---
No, the problem is over-asking. 8 bit always works. Takes some commenting, not programming.
Navigation
[0] Message Index
[#] Next page