Page 1 of 1

C compiler type

Posted: Mon Jul 21, 2014 9:22 pm
by Matt-
I have just discovered the gcc -pedantic tag :)

I am currently waiting on my new Crazyflie (techs are putting it together) and an adapter for a JTAG box (ta for the pointer Tobius). So I'm looking for problems to eliminate in my code before using it.

The -pedantic tag has the ability to be set to c99 which drops a bunch of warnings. Which version does the Crazyflie use, c89/c90 or c99? *** edit; or c11? ***

The warnings relate to declaring variables mixed with code, which is an artefact of my Whiley to C compiler. I'm not phased by them and will not be fixing this warning, but it would be useful to know which compiler is used. Or better, how do you I find this out in general?

Cheers

Re: C compiler type

Posted: Wed Jul 30, 2014 11:44 am
by arnaud
Hi,

The compiler used for Crazyflie development is GCC, we now use the build ARM is maintaining: gcc-arm-embedded https://launchpad.net/gcc-arm-embedded

We are using C99 (at least for named structure initialization and anonymous structure/union). However I cannot find the flag in our Makefile (https://github.com/bitcraze/crazyflie-f ... r/Makefile) so I guess gcc-arm-embedded is compiling with C99 by default (I remember adding GCC C99 flags at some point so it must have been removed since).