CPSC-1010 Chapter Notes - Chapter 2: A.Out, Gnu Compiler Collection, Bracket

38 views7 pages

Document Summary

Add the following lines: set autoindent set smartindent set tabstop=3 set shiftwidth=3 syntax on then save the file and type source . vimrc at the unix command for it to take effect (or log out and log back in for it to take effect). /* prog2_1. c this is the very first program in the book. Program 2. 1, on page 11 which is explained in detail in chapter 2. If you want to capture the preprocessor results, use the e flag with a redirect to a filename for the results to be saved to; to capture the assembly language file, use the s flag; to capture the object code, use the c flag. gcc e prog2_1. c > ppf will create file called ppf containing preprocessor results (will be a . i file) gcc s prog2_1. c gcc c prog2_1. c will create . s file (assembly code) will create . o file (object code)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents