Compiler and version being used

Discussions and support about ChibiStudio, the free development environment for ARM.
Post Reply
jcbless
Posts: 43
Joined: Wed Apr 16, 2025 2:29 pm
Has thanked: 7 times
Been thanked: 3 times

Compiler and version being used

Post by jcbless »

How do I determine which compiler(s) is/are being used when building as well as their version and the flags being used with them. I realize that there are flags specified in the Makefile, but I'm guessing that perhaps there are other flags being specified as well that I'm not finding.

Thanks,
John
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Compiler and version being used

Post by Giovanni »

Hi,

Makefiles include a common file called rules.mk, all options are handled there. When you compile all used options appear in the 1st line of the compile log.

Giovanni
jcbless
Posts: 43
Joined: Wed Apr 16, 2025 2:29 pm
Has thanked: 7 times
Been thanked: 3 times

Re: Compiler and version being used

Post by jcbless »

Where do I find the compile log?

Thanks,
John
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Compiler and version being used

Post by Giovanni »

It is the console output compiling any demo with "make".

Giovanni
jcbless
Posts: 43
Joined: Wed Apr 16, 2025 2:29 pm
Has thanked: 7 times
Been thanked: 3 times

Re: Compiler and version being used

Post by jcbless »

How do I determine the version of arm-none-eabi-gcc or g++ being used?
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Compiler and version being used

Post by Giovanni »

Makefiles use the compiler found in paths, to see the version run: arm-none-eabi-gcc --version

Giovanni
jcbless
Posts: 43
Joined: Wed Apr 16, 2025 2:29 pm
Has thanked: 7 times
Been thanked: 3 times

Re: Compiler and version being used

Post by jcbless »

Please forgive me for asking all these questions. When you say paths, what paths do you mean? I'm pretty sure you don't mean the environment variable $PATH. But I also don't see any variable called paths in the Makefile or rules.mk.

Thanks,
John
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Compiler and version being used

Post by Giovanni »

I meant the environment variable PATH, makefiles just use the 1st compiler found named as arm-none-eabi-*, there is no compiler selection from within makefiles nor explicit compiler paths.

Open a terminal, give the command "arm-none-eabi-gcc --version", that is the compiler that will be used.

Giovanni
Post Reply