上海交通大学交大密西根 联合学院一 181t UM-SJTU Joint Institute ■ University of Michigan Shanghal Jiao Tong University The Compilation Process source file object file #include <stdio.h> 0100100101011001000 1000010100011101011 main(){ 0110100111010101100 printf ("hello\n"); compiler executable file 0100100101011001000 1000010100011101011 0110100111010101100 1001011010110001011 linker 0100100101001011011 other object files 0101101011010100101 and libraries 1001011010110001011 0100100101001011011 0101101011010100101
The Compilation Process The Compilation Process #include <stdio.h> main() { printf("hello\n"); } 0100100101011001000 1000010100011101011 0110100111010101100 compiler source file object file 1001011010110001011 0100100101001011011 0101101011010100101 other object files and libraries 0100100101011001000 1000010100011101011 0110100111010101100 1001011010110001011 0100100101001011011 0101101011010100101 executable file linker
上海交通大学交大密西根 联合学院·一 ■ 81T UM-SJTU Joint Institute University of Michigan Shanghal Jiao Tong University Programs Computer programs,known as software,are instructions to the computer. You tell a computer what to do through programs.Without programs,a computer is an empty machine.Computers do not understand human languages,so you need to use computer languages to communicate with them. Programs are written using programming languages
Programs Programs • Computer programs, known as software, are instructions to the computer. • You tell a computer what to do through programs. Without programs, a computer is an empty machine. Computers do not understand human languages, so you need to use computer languages to communicate with them. • Programs are written using programming languages