Extending C with Arrays of Variable Length

Harry H. Cheng

ABSTRACT

Extending C with arrays of variable length is critical in evolving C as a primary scientific programming language. Arrays of variable length whose size is known only at program execution time are implemented in the CH programming language. CH is designed to be a superset of C. This paper describes the current implementation of arrays of variable length in the CH programming language. It also makes comparison studies of variable length arrays in CH with those implemented in GNU C compiler gcc and Cray Research standard C compiler SCC as well as other alternate proposals.

KEYWORDS

C, variable length array, deferred-shape array, assumed-shape array, pointer to assumed-shape array.


Integration Engineering Laboratory
Webmaster@iel.ucdavis.edu
Created by Harry H. Cheng, 2/24/1995