1986ACM SIGPLAN NoticesOpen access

Compared anatomy of the programming languages Pascal and C

Vincent Hayward

Open full text 1 citations

Abstract

The programming languages PASCAL and C belong to the class of algorithmic compiled languages, and feature comparable facilities. The syntax of C is more regular and enjoys less restrictions than that of PASCAL. Consequently, the syntax of C is significantly simpler than that of the PASCAL language. The design differences are particularly apparent as far as data types, operators, and system interface are concerned. PASCAL implements abstract data types (booleans, sets), whereas C defines data types that reflect the architecture of currently available computers. For PASCAL, the system interface is implemented via functions built in the language and is therefore not extensible by the user. Most of the practical implementations of the language require non standard extensions. In C, system calls and libraries of subroutines and macro instructions are provided to handle the system interface. The portability of applications then depends on the libraries and not on the compiler. A greater flexibility is thus achieved. The use of pointers and the rich set of operators of the C language make it more general than PASCAL, while retaining the principles of structured programming. Separate compilation is a standard feature of C, not of PASCAL. PASCAL compilers are often complex, while C compilers are simple and compact. C compilers include a macro processor, and the program verifier is a separate tool. The application programmers have more responsibility programming in C than in PASCAL, conversely, applications depend less on compilers in C than in PASCAL.

Open-access reader

About this research paper

What this paper is about

The programming languages PASCAL and C belong to the class of algorithmic compiled languages, and feature comparable facilities. The syntax of C is more regular and enjoys less restrictions than that of PASCAL. Consequently, the syntax of C is significantly simpler than that of the PASCAL language. The design differences are particularly apparent as far as data types, operators, and system interface are concerned. PASCAL implements abstract data types (booleans, sets), whereas C defines data types that reflect the architecture of currently available computers. For PASCAL, the system interface is implemented via functions built in the language and is therefore not extensible by the user. Most of the practical implementations of the language require non standard extensions. In C, system calls and libraries of subroutines and macro instructions are provided to handle the system interface. The portability of applications then depends on the libraries and not on the compiler. A greater flexibility is thus achieved. The use of pointers and the rich set of operators of the C language make it more general than PASCAL, while retaining the principles of structured programming. Separate compilation is a standard feature of C, not of PASCAL. PASCAL compilers are often complex, while C compilers are simple and compact. C compilers include a macro processor, and the program verifier is a separate tool. The application programmers have more responsibility programming in C than in PASCAL, conversely, applications depend less on compilers in C than in PASCAL.

Why it matters

OpenAlex reports 1 citations for this work. Citation counts describe recorded attention and do not establish research quality.

Key contribution

A contribution statement is not available in the OpenAlex record.

Method / approach

Method details are not available in the OpenAlex metadata.

Main findings

Findings are not separately available in the OpenAlex metadata.

Limitations

Limitations are not available in the OpenAlex metadata.

Applications

Application details are not available in the OpenAlex metadata.

Available abstract

The programming languages PASCAL and C belong to the class of algorithmic compiled languages, and feature comparable facilities. The syntax of C is more regular and enjoys less restrictions than that of PASCAL. Consequently, the syntax of C is significantly simpler than that of the PASCAL language. The design differences are particularly apparent as far as data types, operators, and system interface are concerned. PASCAL implements abstract data types (booleans, sets), whereas C defines data types that reflect the architecture of currently available computers. For PASCAL, the system interface is implemented via functions built in the language and is therefore not extensible by the user. Most of the practical implementations of the language require non standard extensions. In C, system calls and libraries of subroutines and macro instructions are provided to handle the system interface. The portability of applications then depends on the libraries and not on the compiler. A greater flexibility is thus achieved. The use of pointers and the rich set of operators of the C language make it more general than PASCAL, while retaining the principles of structured programming. Separate compilation is a standard feature of C, not of PASCAL. PASCAL compilers are often complex, while C compilers are simple and compact. C compilers include a macro processor, and the program verifier is a separate tool. The application programmers have more responsibility programming in C than in PASCAL, conversely, applications depend less on compilers in C than in PASCAL.

Key concepts: Programming language, Computer science, Pascal (unit), Compiler, Software portability, Modular programming, Macro, Subroutine

Related papers

Back to paper searchBrowse research topicsOriginal source
Compared anatomy of the programming languages Pascal and C — Research Paper | ScholarLens