CPSC-1010 Chapter Notes - Chapter 2: A.Out, Gnu Compiler Collection, Bracket
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)