CSC209H5 Chapter Notes - Chapter 5: Object File, Abstract Syntax Tree, Gnu Compiler Collection

22 views2 pages

Document Summary

Csc209h5s - software programming and tools (winter 2018) Process source code (. c) compile executable (. out) run executing program. #include int main() { printf("hello, world!\n"); return 0; When we execute gcc, it creates a. out file us to run the program. Source program - input for the compiler (. c) file. Assembly - human readable language that represents the language the computer actually runs. Translates the source code to a largely language independent intermediate representation. Gcc translates into two languages: gimpol and generic (abstract syntax tree) Translates the language into an executable program. Looks for way to run your code faster. Optimizations can also happen in the front and back-end. The backend will only generate your code into assembly code and not object code. Source code (. c) compile assembly (. s) assemble executable (. out) executing. Using the file command, we can see whether the file is an object file or an executable file. The final step in the compiling process is linking.

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