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

MPLab X IDE and XC++ compiler

Posted by Ruben on March 6, 2013
Hi

I see that Microchip launched a new IDE and compiler toolchain of which
XC32 ++ is a part. As far as I can see this is a C/C++ compiler and I want to develop
mainly in C++. Will the free RTOS be compatible with the XC++ compiler?

From what I've seen it wont be an issue, quote MPlab page on Microchip
site "Can be used with all C++ or mixed C/C++ projects in MPLABĀ® XC, All
Microchip C language extensions are available for use" but still, I want
to be sure, so your advice will be appreciated. I'm, using the all sweet
PIC32MX795f512L controller.

Thank you
Ruben

RE: MPLab X IDE and XC++ compiler

Posted by Dave on March 6, 2013
There has been a lot written in these forums about using FreeRTOS in C++, and intereactive.freertos.org has some C++ frameworks. Search the archive http://www.freertos.org/FreeRTOS_Support_Forum_Archive/freertos_support_forum_archive_index.html

In summary, FreeRTOS is only tested as a C program but it contains the necessary "extern C" declarations in header files to allow it to be included in a C++ project provided the FreeRTOS files themselves are still compiled as pure C (the extern C then takes care of the C to C++ linkage). Up until FreeRTOS V7.4.0 used data hiding by defining types differently in different files, and that is not C++ friendly. Changes to queue.c in FreeRTOS V7.4.0 might have fixed that issue, so there is a chance you could compile the code as C++ now but I don't know for sure.


[ 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