The semantics of the C programming language

From MaRDI portal





We present formal operational semantics for the \(C\) programming language. Our starting point is the ANSI standard for \(C\). Knowledge of \(C\) is not necessary (though it may be helpful) for comprehension, since we explain all relevant aspects of \(C\) as we proceed. Our operational semantics is based on evolving algebras. Our primary concern here is with semantics, not syntax. Consequently, we assume that all syntactic information regarding a given program is available to us at the beginning of the computation (via static functions). We intended to cover all constructs of the \(C\) programming language, but not the \(C\) standard library functions (e.g. fprintf(), fscanf()). It is not difficult to extend our description of \(C\) to include any desired library function or functions. Evolving algebra semantic specifications may be provided on several abstraction levels for the same language. Having several such algebras is useful, for one can examine the semantics of a particular feature of a programming language at the desired level of abstraction, with unnecessary details omitted. It also makes comprehension easier. We present a series of four evolving algebras, each a refinement of the previous one. The final algebra describes the \(C\) programming languae in full detail. For the entire collection see [Zbl 0852.00039].











This page was built for publication: The semantics of the C programming language

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4283242)