Page 1 of 1

Compiler and version being used

Posted: Fri Jan 09, 2026 6:00 pm
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

Re: Compiler and version being used

Posted: Fri Jan 09, 2026 6:12 pm
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

Re: Compiler and version being used

Posted: Fri Jan 09, 2026 6:37 pm
by jcbless
Where do I find the compile log?

Thanks,
John

Re: Compiler and version being used

Posted: Fri Jan 09, 2026 7:14 pm
by Giovanni
It is the console output compiling any demo with "make".

Giovanni

Re: Compiler and version being used

Posted: Fri Jan 09, 2026 7:55 pm
by jcbless
How do I determine the version of arm-none-eabi-gcc or g++ being used?

Re: Compiler and version being used

Posted: Fri Jan 09, 2026 8:28 pm
by Giovanni
Makefiles use the compiler found in paths, to see the version run: arm-none-eabi-gcc --version

Giovanni

Re: Compiler and version being used

Posted: Fri Jan 09, 2026 9:06 pm
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

Re: Compiler and version being used

Posted: Sat Jan 10, 2026 5:44 am
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