This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

arm-none-eabi-gcc default parameters

how to know exactly which parameters are enabled/disabled by default for arm-none-eabi-gcc?

I have the doubt thinking about the parameter `-fshort-enum`.

Try to compile this example (main.c):

First I used gcc on my ubuntu 18.04 (with '-DDIM=x -std=gnu11 -Wall -Wextra' parameters):

As you can see I have gcc 7.4.0 on my machine, and it seems that the default is '-fno-short-enum', in fact the build fails with DIM other than 4.

The I tried to compile with arm toolchain (same parameters):

In this case it seems that is enabled '-fshort-enum' by default, in fact the build fails with DIM other than 1, and I have also a warning.

So I must deduce that the default of the two gcc's is different, I guess for other parameters, maybe even many.

Where can I find the default parameters for arm-none-eabi-gcc? Is it a document distributed with the toolchain or online? Or should I look at the sources? And in the latter case exactly where?

best regards

Max

0