Содержание
- 2. What is a Programming Language? a tool for instructing machines a means of communicating between programmers
- 3. Language Designers Balance … making computing convenient for programmers (a fool with a tool is still
- 4. Levels Gross distinction between programming language based on readability based on independence based on purpose (specific
- 5. Levels Machine level language Assembly level language High-level language (3GL) sometimes 4GL - fourth Generation Language
- 6. Machine Level 00000010101111001010 00000010101111001000 00000011001110101000 Can you tell what this code fragment does? Can it be
- 7. Assembly Language Look at figure 1.1 LD R1,”0” LD R2, M ST R2, R1 … real
- 8. Assembly Language Look at page 63 in your text and figure 3.1 Can you understand what
- 9. Basic Concepts of a RAM machine Memory: addresses, contents Program: instructions input/output:(files) 20 2000 A 10
- 10. High Level Readable familiar notations machine independence availability of program libraries consistency check (check data types)
- 11. Problems of Scale Changes are easy to make isolated program fragments can be understood BUT… one
- 12. Bugs Programming testing can be used to show the presence of bugs, but never their absence!
- 13. Role of Programming Languages Art (science) of programming is organizing complexity Must organize in such a
- 14. Programming Paradigms Imperative - action oriented, sequence of actions Functional - LISP, symbolic data processing Object-Oriented
- 15. Language Implementation Compiler - source code it translated into machine code (all at once) Interpreter -
- 16. Compiled C Source code in C Pre- procces sor compiler Linker or assembler Machine code (exe)
- 17. Interpreted Code Each instruction is interpreted by machine interpreter does not produce object code
- 18. Comparisons Compilation more efficient interpreted more flexible
- 19. Testing your skill Do 1.4 (a,b,c) in PL book Do 1.5 For each file, include a
- 20. Testing your skill For each module, include a module header: what this module accomplishes - description
- 22. Скачать презентацию