This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What are the differences between IAR and GCC ?

Hi everyone !

We migrated a functional code from IAR to GCC compiler. But we got some trouble working it with GCC. The code compiles but it doesn't act properly with GCC(I use nRF UART for debugging, we didn't change any line of code).

Here is my Makefile: Makefile

Here is the linker script : application.ld

My questions are: What are the differences between these two compiler ? Does GCC make some optimisations that IAR doesn't do ? I had to put the -Os flag because of the size. Could this flag make optimisation that make the code disfunctional ?

Thank you so much !

Parents
  • Hi Martin Børs-Lind, I'm using SDK and Softdevice v8.1. And actually the majority of functions work, it's for that I'm asking these question. I also put the whole Makefile.

    Thanks for your answer

Reply
  • Hi Martin Børs-Lind, I'm using SDK and Softdevice v8.1. And actually the majority of functions work, it's for that I'm asking these question. I also put the whole Makefile.

    Thanks for your answer

Children
No Data