Re: KEil bought by ARM



"Wilco Dijkstra" <Wilco_dot_Dijkstra@xxxxxxxxxxxx> writes:

> "John Devereux" <jdREMOVE@xxxxxxxxxxxxxxxxxx> wrote in message
> news:87mzkrdzxj.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx
> > "larwe" <zwsdotcom@xxxxxxxxx> writes:
> >
> >> Chris Hills wrote:
> >>
> >> > Actually Open Source is no match for good commercial compilers in so
> >> > many ways.
>
> > Also, even if you accept that the commercial compilers are "better" at
> > code generation (I have not seen this):
>
> You probably haven't used professional compilers then... Yes, in the
> 8 and 16-bit space some commercial compilers are worse than open
> source ones. However 10 year old ARM compilers _still_ generate better
> code than the latest GCC...

I have not used a "professional" (commercial) ARM compiler, this is
true.

> > - gcc is getting better and better. Presumably there is a limit to how
> > good a commercial compiler can be, so any gap should be closing.
>
> GCC is definitely getting better, but is it narrowing the gap? If you
> consider large C++ applications then the scope for improvement is
> enormous - I guess a factor 2 of improvement is achievable.

Maybe - my programs tend to be "medium sized" C. I would suggest that
we can expect further improvements in gcc with respect to "large C++"
programs. This is because efforts by the gcc maintainers in this area
would benefit all targets enormously, compared to working on
micro-optimising a single backend. This is especially likely if the
factor if 2 you mention is correct.

> > - code space and MHz are getting cheaper and cheaper, so it makes
> > less and less difference anyway as time goes on.
>
> Applications grow about as fast as memory and performance do, so any
> improvements are immediately swallowed.

> > - It is getting easier and easier to justify using 32 bit parts (like
> > ARM) in new designs. I would expect the architecture of these parts
> > to more closely match gcc's abilities than, say, the 8051 where Keil
> > have been the leader.
>
> Interestingly in the 32-bit RISC space GCC is furthest behind. If you look
> at EEMBC or Spec for example you don't see (m)any uses of GCC.

Well I guess that depends on who does the benchmarking!

I did come accross this

<http://www.compuphase.com/dhrystone.htm>

In summary, it looks like Keil ran their own compiler with full
optimisation, and gcc with none! When both were run with sensible
settings for embedded work, gcc came out ahead in both speed and
memory footprint.

--

John Devereux
.



Relevant Pages

  • Re: Which PIC18 C Compiler?
    ... Walter gave a good answer regarding recursion in 8051 compilers, totally unrelated to gcc and/or sdcc (since there is no gcc port for the 8051). ... But in my experience on ColdFire's and PPC's, it has generated similar to or better than the few commercial compilers I have seen. ...
    (comp.arch.embedded)
  • Re: math.nroot [was Re: A brief question.]
    ... >>> Ah, but as I've said before, virtually all C compilers on 754 boxes ... >>> happy to use gcc, they all could have used the older gcc spellings ... > use glibc, they all could have used the older glibc spellings. ... for setting traps) interfaces, and I can't be arsed to go through old ...
    (comp.lang.python)
  • Re: math.nroot [was Re: A brief question.]
    ... >> happy to use gcc, they all could have used the older gcc spellings ... parings of C compilers and C runtime libraries are ... use glibc, they all could have used the older glibc spellings. ... trap doesn't actually fire until the _next_ fp operation ...
    (comp.lang.python)
  • Re: What is Linux built with? (or, what does this question mean?)
    ... Isn't the kernel/distro nearly always built w/ gcc? ... Now some of us actually have other compilers as well and these could be ... specific to provide cache and other optimizing that can't be generic. ... gnu compile in a way that it gives some registers over to the kernel as far ...
    (alt.os.linux.suse)
  • Re: g77 mex problem under win
    ... Don't have my matlab available, but as far as I can remember, ... Why do you insist on using gcc? ... You can buy good C compilers for a couple of hundred ... The same goes for me with the fortran compilers I have seen. ...
    (comp.soft-sys.matlab)