gcc compilation

  1. Preprocesser: replace include .h with the actual code, replace macro, remove comments.
  2. Compiler: compile .c file to assembly code. –> .s
  3. Assembler: convert assembly code .s to binary code .o
  4. Linker: combine binary code together
  5. Loader:

user program processing

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s