Title :
Optimization of C code in a real-time environment
Author :
Kraeling, Mark B.
Author_Institution :
Cummins Engine Co., Columbus, IN, USA
Abstract :
The process of developing software varies from company to company, and often project to project. Often lost in the argument of which process to use is coding for optimization of throughput and resources. This paper explores different ways of optimizing C source code. Topics presented include, but are not limited to, the importance of selecting a compiler and understanding its options at the beginning of a project, analysis of fixed-point versus floating point operations, and ways to conserve stack and memory resources. Comparisons between compilers and processors are not addressed, but data and examples are given to show improvements on multiple platforms
Keywords :
C language; floating point arithmetic; optimising compilers; programming; real-time systems; software selection; C code optimization; fixed-point operations; floating point operations; memory resources; optimising compiler; programming; real-time environment; software development; software project; stack resources; Assembly; Computer languages; Creep; Object oriented programming; Optimizing compilers; Programming profession; Random access memory; Registers; Switches; Throughput;
Conference_Titel :
WESCON/96
Conference_Location :
Anaheim, CA
Print_ISBN :
0-7803-3274-1
DOI :
10.1109/WESCON.1996.554585