Programming languages

 

CS 231: Introduction to Programming
Lecture #4: Hardware architecture

Programming languages
bullet Machine language machine language (or machine code) is the native language of ones-and-zeros instructions that the machine can directly perform

Control bar


















































 

CS 231: Introduction to Programming
Lecture #4: Hardware architecture

Programming languages
bullet Machine language
bullet Assembly language assembly language is the lowest level of human-oriented (name-based) language normally used; it is translated into machine code by an assembler

Control bar


















































 

CS 231: Introduction to Programming
Lecture #4: Hardware architecture

Programming languages
bullet Machine language
bullet Assembly language
bullet High-level languages numerous high-level languages have been developed over the years in order to make programming conceptually closer to the way humans think

Control bar


















































 

CS 231: Introduction to Programming
Lecture #4: Hardware architecture

Programming languages
bullet Machine language
bullet Assembly language
bullet High-level languages
bullet Compilers and interpreters • an interpreter is a program which dynamically translates a high-level language into machine code (i.e., it re-translates repeated steps as it goes)
• a compiler is a program which translates a complete high-level program into a completed machine code program, once and for all

Control bar