Professional Documents
Culture Documents
CS101 (20-21 Rgipt) L4
CS101 (20-21 Rgipt) L4
CS 101
A simple C program
#i n c l u d e <s t d i o . h>
v o i d main ( )
{
p r i n t f ( ” H e l l o World ! ” ) ;
}
A simple C program
#i n c l u d e <s t d i o . h>
v o i d main ( )
{
p r i n t f ( ” H e l l o World ! ” ) ;
}
A simple C program
#i n c l u d e <s t d i o . h>
v o i d main ( )
{
p r i n t f ( ” H e l l o World ! ” ) ;
}
A simple C program
#i n c l u d e <s t d i o . h>
v o i d main ( )
{
p r i n t f ( ” H e l l o World ! ” ) ;
}
A simple C program
#i n c l u d e <s t d i o . h>
v o i d main ( )
{
p r i n t f ( ” H e l l o World ! ” ) ;
}
A simple C program
#i n c l u d e <s t d i o . h>
v o i d main ( )
{
p r i n t f ( ” H e l l o World ! ” ) ;
}
Program explanation
Program explanation
Program explanation
Program explanation
Program explanation
Program explanation
Program explanation
Program explanation
Program explanation
Program explanation
Program explanation
Program explanation
Program explanation
Program explanation
Compilation Process
Compilation Process
Compilation Process
Compilation Process
Compilation Process
Compilation Process
HLL file.c
Compiler $gcc -S
file.c or file.i
Assembly Language file.s
Compilation Process
HLL file.c
Compiler $gcc -S
file.c or file.i
Assembly Language file.s
Compilation Process
Preprocessor:
Removal of comments
File incusion (#include<>)
Micro expansion (#define<>)
Compiler: Translates HLL into Assembly language (Low-level language).
Assembler: Translates assembly language into M/c code (relocatable).
Compilation Process
Preprocessor:
Removal of comments
File incusion (#include<>)
Micro expansion (#define<>)
Compiler: Translates HLL into Assembly language (Low-level language).
Assembler: Translates assembly language into M/c code (relocatable).
Compilation Process
Preprocessor:
Removal of comments
File incusion (#include<>)
Micro expansion (#define<>)
Compiler: Translates HLL into Assembly language (Low-level language).
Assembler: Translates assembly language into M/c code (relocatable).
Compilation Process
Preprocessor:
Removal of comments
File incusion (#include<>)
Micro expansion (#define<>)
Compiler: Translates HLL into Assembly language (Low-level language).
Assembler: Translates assembly language into M/c code (relocatable).
Compilation Process
Preprocessor:
Removal of comments
File incusion (#include<>)
Micro expansion (#define<>)
Compiler: Translates HLL into Assembly language (Low-level language).
Assembler: Translates assembly language into M/c code (relocatable).
Compilation Process
Preprocessor:
Removal of comments
File incusion (#include<>)
Micro expansion (#define<>)
Compiler: Translates HLL into Assembly language (Low-level language).
Assembler: Translates assembly language into M/c code (relocatable).
Compilation Process
Preprocessor:
Removal of comments
File incusion (#include<>)
Micro expansion (#define<>)
Compiler: Translates HLL into Assembly language (Low-level language).
Assembler: Translates assembly language into M/c code (relocatable).