Compiler and version being used

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

Compiler and version being used

Postby jcbless » Fri Jan 09, 2026 6:00 pm

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: 14779
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1174 times
Been thanked: 976 times

Re: Compiler and version being used

Postby Giovanni » Fri Jan 09, 2026 6:12 pm

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: 39
Joined: Wed Apr 16, 2025 2:29 pm
Has thanked: 6 times
Been thanked: 3 times

Re: Compiler and version being used

Postby jcbless » Fri Jan 09, 2026 6:37 pm

Where do I find the compile log?

Thanks,
John

User avatar
Giovanni
Site Admin
Posts: 14779
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1174 times
Been thanked: 976 times

Re: Compiler and version being used

Postby Giovanni » Fri Jan 09, 2026 7:14 pm

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

Giovanni

jcbless
Posts: 39
Joined: Wed Apr 16, 2025 2:29 pm
Has thanked: 6 times
Been thanked: 3 times

Re: Compiler and version being used

Postby jcbless » Fri Jan 09, 2026 7:55 pm

How do I determine the version of arm-none-eabi-gcc or g++ being used?

User avatar
Giovanni
Site Admin
Posts: 14779
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1174 times
Been thanked: 976 times

Re: Compiler and version being used

Postby Giovanni » Fri Jan 09, 2026 8:28 pm

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

Giovanni

jcbless
Posts: 39
Joined: Wed Apr 16, 2025 2:29 pm
Has thanked: 6 times
Been thanked: 3 times

Re: Compiler and version being used

Postby jcbless » Fri Jan 09, 2026 9:06 pm

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: 14779
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1174 times
Been thanked: 976 times

Re: Compiler and version being used

Postby Giovanni » Sat Jan 10, 2026 5:44 am

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


Return to “ChibiStudio”

Who is online

Users browsing this forum: No registered users and 27 guests