SLIDE 1
1
CSCI 125 & 161 / ENGR 144 Lecture 3
Martin van Bommel
Operating System
- Program that acts as interface to other
software and the underlying hardware
Operating System Utilities Compilers Utility Programs Assemblers Editors Hardware E-mail
HLL to Machine Language
- Enter HLL program into file using editor
– program.cpp - source file
- Translate source code to machine code - compiler
– program.obj - object file
- Combine object code with libraries - linker
– program.exe - executable file
- Move program to memory - loader
IDE
- Integrated Development Environment
– combines editor, compiler, linker, loader – usually includes tools to assist in debugging
- Note
– IDE’s do not always write to disk automatically – must remember to save work to disk often, especially before executing a program
Programming Errors
- Vocabulary and grammar - syntax
- Rules determine if statement legally
constructed - syntax rules
- Compiler checks rules - gives syntax errors
- Programs also contain errors in logic - bugs
- Debugging - finding & fixing logic errors
- e.g. 1962 Mariner I Venus probe crashed due to missing hyphen (-)