Execution characteristics of C++ and C programs on embedded processor ARM7TDMI

  • Authors:
  • Ji Weixing;Shi Feng;Qiao Baojun

  • Affiliations:
  • Department of Computer Science and Engineering, Beijing Institute of Technology, Beijing, China;Department of Computer Science and Engineering, Beijing Institute of Technology, Beijing, China;Department of Computer Science and Engineering, Beijing Institute of Technology, Beijing, China

  • Venue:
  • ACOS'06 Proceedings of the 5th WSEAS international conference on Applied computer science
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper presents detailed behavioral measurements of several C++ and C programs on embedded processor ARM7TDMI. By comparing the instruction set usage of C++ and C benchmark programs, we can specify what is needed in an embedded object-oriented processor in order to provide a fully object-oriented system in both hardware and software. Various architectural data related to execution behavior and instruction set usage is collected using ADS 1.2 and profiling software. In addition, the benchmarks explored in this paper have both C++ and C versions. All the programs are computing intensive and used with high frequency in embedded software. Results show that the static size of C++ program is larger than C programs. Although, C++ programs have more call instructions and more memory operations, C++ programs possess smaller function size than C programs. Various suggestions on optimization to be applicable in both hardware and software are appended in our research paper.