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

Cortex M3 compilers and benchmarks

Note: This was originally posted on 20th January 2009 at http://forums.arm.com

Please help me identify the best compiler for CortexM3.
I currently use armcc from ARM, but curious if that is the best option on the market. So far, I found a couple of options for Cortex M3 compilers: GCC, armcc (RVCT 3.1) and IAR. What I cannot find is the benchmarking results or comparison between those compilers. Are there any other notable compilers/linkers for Cortex M3 that I missed?
I am mainly interested in code density and run time efficiency of the compiled image.

Thank you in advance!

Andrey
Parents
  • Note: This was originally posted on 22nd January 2009 at http://forums.arm.com

    What exactly do you mean by "run time efficiency"? Do you mean speed? In any compiler, there is a trade-off between code density and speed. Indeed, you can use "-Otime" and "-Osize" in RVCT to tell it what is important to you.


    You are correct. Speed of the produced executable is what I meant by the run time efficiency. And you right again: I did not mention what I am trying to measure.
    Well, speed is probably more important for me then size, but I would not want to have my image blow up in size either. As most engineers, I am looking for a perfect balance that would fit my needs.
    "GCC is free - and you get what you paid for" - I heard from some people.
    But this was just one opinion I got.
    Is that a common opinion that commercial compilers are generally better then
    GCC for ARM CPU's?
    I will take your advice and will measure the performance of compilers on my code samples myself. However, I was hoping to see generic benchmarking data and hear expert's opinions, to get a better understanding of the differences.
Reply
  • Note: This was originally posted on 22nd January 2009 at http://forums.arm.com

    What exactly do you mean by "run time efficiency"? Do you mean speed? In any compiler, there is a trade-off between code density and speed. Indeed, you can use "-Otime" and "-Osize" in RVCT to tell it what is important to you.


    You are correct. Speed of the produced executable is what I meant by the run time efficiency. And you right again: I did not mention what I am trying to measure.
    Well, speed is probably more important for me then size, but I would not want to have my image blow up in size either. As most engineers, I am looking for a perfect balance that would fit my needs.
    "GCC is free - and you get what you paid for" - I heard from some people.
    But this was just one opinion I got.
    Is that a common opinion that commercial compilers are generally better then
    GCC for ARM CPU's?
    I will take your advice and will measure the performance of compilers on my code samples myself. However, I was hoping to see generic benchmarking data and hear expert's opinions, to get a better understanding of the differences.
Children
No data