Академический Документы
Профессиональный Документы
Культура Документы
Computer Programming
Lecture #0
• “PROGRAMMING IN ANSI C”
By E. BALAGURUSAMY
McGraw Hill Education
6th Edition
© LPU :: CSE101 C Programming
WHY C???????????????
•Microsoft Excel
•Oracle Database
•MySql
•Linux
•Unix
•Android
•Google
© LPU :: CSE101 C Programming
MNCs
Top rated Companies which has a dearth of C programmers
•Storage Classes
int main(void) {
puts("Hello, World!");
return 0;
}
© LPU :: CSE101 C Programming
Compilation Stage
• In this stage, the preprocessed code is translated to
assembly instructions specific to the target
processor architecture.
• These form an intermediate human readable
language.
• The existence of this step allows for C code to
contain inline assembly instructions and for
different assemblers to be used.
• This will create a file named hello_world.s
containing the generated assembly code.
© LPU :: CSE101 C Programming
Assembly Stage
• An assembler is used to translate the assembly
instructions to object code.
• The output consists of actual instructions to be run
by the target processor.
• It will create a file named hello_world.o
containing the object code.
• Content of the file is in binary format