Hello to everyone,
I would need to know if it is possible to set the runtime check enabled or disabled as a compiler option using GNU compiler 7.3.1. In the list of compiler commands I didn't find anything related to runtime check (as compiler option) but toolchain installion option.
Thanks in advance
Best Regards,
Andrea
Hello,
I'm referring to GNU C ARM 7.3.1 compiler. I saw here 'https://gcc.gnu.org/install/configure.html' that there is the possibility to install the compiler with the option ‘--enable-checking=yes’ (that includes also the runtime ones) but it is not clear to me if it is enabled in the version, already installed, released from the official site (https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads --> gcc-arm-none-eabi-7-2018-q2-update-win32.zip ). It is not clear to me also if there is a compiling command to enable or disable the 'checking' since I didn't find any command here 'https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html' that specifies the possibility to enable or disable the 'checking' option (after the compiler is installed).
BR
Hi Andrea,
What exactly are you trying to do? `--enable-checking` enables internal consistency checks inside the compiler itself but has no influence on end user programs produced by the compiler. It has to be set during compilation and can't really be changed after that.
The GNU releases are released compilers, so they are build with `--enable-checking=release` which leaves only cheap consistency checks.
It would be helpful to explain what you're trying to do.
Regards,
Tamar
Hi Tamar,
thank you very much for the clarification.
My question was related to the runtime check, if they are activated in GNU compiler release.
Reading GNU configuration manual, `--enable-checking=release` means that 'runtime' and 'assert' checks are activated.
Does the option `--enable-checking=release` causes the user code instrumentation or not (from your answer it seems not)?
thank you and BR,