MOTD

Message Of The Day


Dhrystone-Benchmark with GCC

Tested with dhrystone 1.1 from the package "Keil uVision3", C-Compiler ECO-C-arm V2.2b with IDE (based on GCC 3.3.2), library by PAULundSCHERER (replacing newlib).

Dhrystone was compiled for the controllers LPC2106, LPC2194 and LPC2138 and executed on the real hardware. The controllers ran at 60MHz, with MAM (Memory Access Module) active. The programs ran in the internal FLASH.

Below the results:

SBC Controller Dhrystones Code Size
in Bytes
Mode Compiler
LC2138 LPC2138 56818
53763
4733
3541
ARM
Thumb
GCC 3.3.2
LC2194 LPC2194 61162
55401
4733
3541
ARM
Thumb
GCC 3.3.2
NET2106 LPC2106 61162
55401
4733
3541
ARM
Thumb
GCC 3.3.2

There are strange differences between LPC2106/LPC2194 and LPC2138.

The program was also compiled with the Keil-Compiler and executed on NET2106.

Below the results:

SBC Controller Dhrystones Code Size
in Bytes
Mode Compiler
NET2106 LPC2106 30211
30487
4512
3424
ARM
Thumb
Keil 2.40a

The code sizes are similar. The bad dhrystone results for the Keil-Compiler, compared to GCC are surprising.

For a detailed discussion of this topic see
http://www.compuphase.com/dhrystone.htm.

www.mct.net