C11 Compatibility in Chibi OS

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

Moderators: RoccoMarco, lbednarz, tfAteba

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

C11 Compatibility in Chibi OS

Post by akshaim »

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: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: C11 Compatibility in Chibi OS

Post by Giovanni »

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
Post Reply