Содержание
- 2. Agenda What is type and typification, type equivalence, entity Evolution of type system Type conversions CPU
- 3. What types were in fact presented at Lecture 1? Von Neumann architecture: CPU + RAM +
- 4. Why do we need types? As soon as we have data it belongs to some class
- 5. Type – what is it? Abstract concept. Data type! Type has a name! Definition1. What is
- 6. Data type -> entity Low-level => word, that is how Asm works, key thing is address
- 7. Evolution of types in programming languages Fixed set of types (Asm, Fortran IV, PL-I, …) Standard
- 8. Type conversions Distinguish Interpret one region of memory as entity of another type Do some calculation
- 9. Types – approach for construction Bit -> 1 bit Integer, Boolean Byte -> 8 bit Integer,
- 10. Important built-in types - Array Array is so close to math. 1 dimensional array is vector.
- 11. Important built-in types – struct (Record) Named group of data entities of different size (type). Each
- 12. Important built-in types – range and enumeration Range - [1..100] – kind of constraint to the
- 13. Value and pointer to the value So, far we have atomic data entities (bit, byte, word,
- 14. Memory management 2 key operations malloc (NEW) – allocate (reserve) fixed size chuck of memory free
- 15. User types Unlimited number of different types! They all are based on bit, byte and word
- 16. Static and dynamic type checking JavaScript, Python, … dynamic type checking. “easy” to code Harder to
- 17. Compilation unit – to proceed at labs It is the programming language construction which can be
- 19. Скачать презентацию