1 iki10230 pengantar organisasi komputer kuliah no. 09: compiling-assembling-linking sumber: 1. paul...

of 29 /29
1 IKI10230 Pengantar Organisasi Komputer Kuliah no. 09: Compiling-Assembling-Linking Sumber : 1. Paul Carter, PC Assembly Language 2. Hamacher. Computer Organization, ed-5 3. Materi kuliah CS61C/2000 & CS152/1997, UCB 21 April 2004 L. Yohanes Stefanus ([email protected]) Bobby Nazief ([email protected]) bahan kuliah: http://www.cs.ui.ac.id/kuliah/POK/

Author: karen-grays

Post on 15-Dec-2015

213 views

Category:

Documents


0 download

Embed Size (px)

TRANSCRIPT

  • Slide 1

1 IKI10230 Pengantar Organisasi Komputer Kuliah no. 09: Compiling-Assembling-Linking Sumber: 1. Paul Carter, PC Assembly Language 2. Hamacher. Computer Organization, ed-5 3. Materi kuliah CS61C/2000 & CS152/1997, UCB 21 April 2004 L. Yohanes Stefanus ([email protected]) Bobby Nazief ([email protected]) bahan kuliah: http://www.cs.ui.ac.id/kuliah/POK/ Slide 2 2 Steps to Starting a Program C program: foo.c Assembly program: foo.s Executable(mach lang pgm): foo.exe Compiler Assembler Linker Loader Memory Object(mach lang module): foo.o lib.o Slide 3 3 Example: C Asm Obj Exe Run #include int main (int argc, char *argv[]) { int i; int sum = 0; for (i = 0; i