C11 Compatibility in Chibi OS

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

akshaim
Posts: 20
Joined: Tue Sep 21, 2021 9:47 am
Has thanked: 9 times

C11 Compatibility in Chibi OS

Postby akshaim » Wed Mar 02, 2022 11:46 am

Hi Team,

From forums I have noticed that ChibiOS use C99 standard however I have noticed AVR arch making use of C11( os/common/ports/AVR/compilers/GCC/rules.mk line 62 says CSTANDARD = -std=gnu11 .

My doubt is whether it's okay to mix C99 and C11 code?

Regards,

Aksha M

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: C11 Compatibility in Chibi OS

Postby Giovanni » Wed Mar 02, 2022 1:42 pm

Hi,

There is nothing intrinsically incompatible with C11, C99 is meant to be the "minimum". A full switch to C11 is possible in the future, at least for some modules.

Please report a bug if you see incompatibilities to be addressed.

Giovanni


Return to “General Support”

Who is online

Users browsing this forum: Bing [Bot] and 16 guests