COMPILER WEEK 1 Flashcards
Definition: A language used to write instructions or programs for computers to execute.
Term: Programming Language
Definition: The lowest-level language that computers can understand. It consists of instructions written in binary code.
Term: Machine Language
Definition: A program that translates source code written in a programming language into machine language that can be executed by a computer.
Term: Compiler
Definition: A popular third-generation programming language that is widely used for system programming and high-performance computing. It is a procedural language that supports the collection of sets of instructions into functions.
Term: C Language
Definition: A program that translates C language statements into machine language equivalents. The output from a compiler is binary code that can be executed by a computer.
Term: C Compiler
Definition: Machine language instructions that are generated by a compiler from source code. It is the only language that a computer can directly execute.
Term: Binary Code
Definition: The human-readable version of a program written in a programming language. It is translated into binary code by a compiler.
Term: Source Code
Definition: Data that is provided to a program while it is executing. This can be entered by a user or read from a file.
Term: Input
Definition: Data that is produced by a program while it is executing. This can be displayed on a screen, written to a file, or sent to another program.
Term: Output
Definition: The set of rules that defines the structure and format of statements in a programming language. Correct syntax is required for a program to compile and execute properly.
Term: Syntax
Front:
What is the name of the C compiler that ships with Linux operating systems?
Back:
The C compiler that ships with Linux operating systems is called gcc.
Front:
What is the default output file name produced by the gcc compiler in Linux?
Back:
The default output file name produced by the gcc compiler in Linux is a.out
Front:
What is the purpose of comments in C programming?
Back:
Comments in C programming serve the purpose of self-documenting the code and enhancing its readability.
Front:
What is whitespace in C programming?
Back:
Whitespace in C programming refers to any blank space, newline, horizontal tab, vertical tab, form feed, or comments.
Front:
Does the C compiler ignore whitespace?
Back:
Yes, the C compiler ignores whitespace altogether.