ESE 381 Lecture Notes - Lecture 11: Object File, In C, Operand

15 views12 pages

Document Summary

Most program of any sized consist of multiple files. To understand how to use objects and functions in multi file programs requires an understanding of storage classes. Its storage class determines an object or function"s scope, duration, and linkage. There are four distinct stages involved in the compilation of a program. When using an ide these stages are carried out seamlessly without your intervention. Translation unit: a source file and all the header files referenced by #include directives. If the compiler finds no errors in the translation unit, it generates and object file (module) containing the machine code. The compiler translates each translation unit of a program into a separate object file. The compiler invokes a the linker, which combines the object file and any necessary library functions into an executable file. The executable file also contains any information that the target operating system needs in order to load and start it.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents