C compiler type

Firmware/software/electronics/mechanics
Post Reply
Matt-
Beginner
Posts: 14
Joined: Thu May 08, 2014 2:22 am

C compiler type

Post 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
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: C compiler type

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