Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

floating point support

Posted by Nobody/Anonymous on May 7, 2007
Hi everybody,
sorry, but Iam a complete newbie on FreeRTOS here.
My question is, does FreeRTOS support floating point math?
I use the GCC on ARMSAM7x256.
Thanks

RE: floating point support

Posted by Çağlar Akyüz on May 7, 2007
FreeRTOS doesn't but GCC does. :)

RE: floating point support

Posted by Nobody/Anonymous on May 7, 2007
Hi Çağlar Akyüz
thank you for your response.
Do you know a trick to use floating points on FreeRTOS?
Perhaps: stopping (freezing) RTOS and INTERRUPTS, then perform a
floating point algorithm, go back to RTOS?
Thanks in advance

RE: floating point support

Posted by Richard on May 7, 2007
This would only be necessary if the floating point libraries are not re-entrant. Do you know if this is the case or not? I suspect they are re-entrant, in which case you do not need to take any special measures in order to use floating point from within a task (other than ensuring the task has enough stack space to call the library functions).

Regards.

RE: floating point support

Posted by Çağlar Akyüz on May 7, 2007
If you want to stop scheduler or interrupts you can but I don't think it is something desirable.
Besides it is something application specific.

Moreover, SAM7X do not have a floating-point hardware. That's make floating point code nothing different, from the
rtos point of view. That's a matter of fact for the compiler-library couple.

What I want to say is just implement your favourite algorithm, measure the results. if you *need* more time then you can
always think about disabling interrupts/scheduler.

I hope I get the point.

Best Regards

RE: floating point support

Posted by Nobody/Anonymous on May 7, 2007
many thanks to Richard and Çağlar Akyüz.
Great help for my next steps with FreeRTOS.
Best Regards
Michael


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists