Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!aioe.org!.POSTED!not-for-mail From: Walter Banks Newsgroups: comp.lang.c,comp.arch.embedded Subject: Re: Benchmarking C compilers for embedded systems Date: Fri, 30 Sep 2011 08:11:41 -0400 Organization: Aioe.org NNTP Server Lines: 44 Message-ID: <4E85B1FD.F0445319@bytecraft.com> References: <4e777f60$0$4152$6e1ede2f@read.cnntp.org> NNTP-Posting-Host: wLJSRtUZAOojF6GjHDN8iA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Mailer: Mozilla 4.79 [en]C-CCK-MCD NSCPCD479 (Windows NT 5.0; U) X-Accept-Language: en X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:11105 comp.arch.embedded:5022 Philipp Klaus Krause wrote: > I'd like to compare C compilers targetting embedded systems - the kind > that only have a few KB of RAM, etc. > > However there seems to be a lack of software I could use. Waht I'm > looking for should be free, written (mostly) in standard C, be not > totally different from typical embedded applications. > > So far I see: > - dhrystone > - The Contiki OS > - the files I've been using to track sdcc over revisions at > https://sourceforge.net/apps/trac/sdcc/wiki/Philipp%27s%20TODO%20list > > Are there any other suitable benchmarks I could look at? They don't have > to be designed as benchmarks, other software, like the Contiki OS > mentioned above is OK, too. THey don't even have to "run", so libraries > would be OK, too. > Philipp, There are tons of embedded systems benchmarks on the internet. In our compiler work we have found the most informative benchmarks are application type benchmarks close to the actual intended application. The application fragment type benchmarks (fft, filters, math packs) are useful generally is seeing how focused a compiler is in optimizing a specific application area. Generic benchmarks would likely need to also have some definition of the intended application area. There isn't much meaning in comparing the performance of processors used in mice and processors used in home appliance controllers. Both are non hosted embedded controllers with a few K of code but very different requirements. They may even be members of the same family. Walter..