ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
?????? ?? ?? ??
(???? ??, ??? ? ????...)
Sunny Kwak
(sunnykwak@daum.net)
? ?
? ? ??? ????
¨C ??? ?? ???
¨C ???? ??
¨C ??? ???
¨C ??? ???
¨C ? ??? ???? ??
¨C ? ??? ???? ???
¨C ? ??? ????? ?? ??
¨C ? ??? ??? ????
¨C ??(clock)? ??? ??
¨C Register vs. Memory
¨C ? ??? ????? ?????...
? ?????? ?? ??
¨C ??? ????? ¡°Ada¡±
¨C ?????? ??? ????
¨C ???? ?????
¨C ??? ??? ?? ??? ??? ?????
¨C C ????? ?? ?? ??
¨C ????, ????, ??? ??? ??
¨C main ??? argc ??? argv
? COMPILE, LINK, LOAD
¨C ????? ??????? ??
¨C ??? ?? ??
¨C ??, ????, ??? ?? ??
¨C ???? (Compiler)
¨C ???? (Assembler)
¨C ?? (linker)
¨C ?? (loader)
? ??? ????
????? ???? ?! ????? ??
??? ?? ???
? ??? ??????? ??? ????
¨C ¡°calculate¡±, ??? ¡°compute¡± ? ????.
¨C ???? ???? ??? ????, ¡°~er¡±? ???.
? ??, ¡°Calculator¡±? ¡°Computer¡±? ?? ????
¨C Calculator? ?????, Computer? ??????? ?????.
¨C ?? ?? ???? ?? ??? ??? ????.
¨C ??(origin)? ??? ?? ?? ?? ???
??(??, origin)? ??? ????.
??? ???? ??? ???? ????.
? ? ?????? ??? ? ?????.
???? ??
? ?? ????? ??? ¡°??¡± ??? ? ???.
??? ??? ?????,
??? ?????.
??? ???
? 17??, ??? ? ??? ???, ???? ???? ??
? 19??, ?? ???, ???? ????? ?? ??
???? ??? ?? ????(Pascaline) ???? ????
??? ???
? ?????? ?????? ??
¨C ?????? ??? ??(??)? ?? ??? ??? ? ??.
??? ???? ???? ???? ? ??? ???? ????.
¨C ?????? ???? ????? ??? ???? ???? ???? ?? ????.
¨C ?, ?? ??(???? ??)? ???,
??? ??? ???? ???, ??? ??? ??? ? ??? ??.
? ??? ???? ???
¨C ??? ?? (Conrad Zuse, 1910~1995), Z3 ? Z4 ??
¨C ??? ???(Howard Aiken), 1944? Mark-1 ??
¨C ???? ??? ??(Grace Murray Hopper), ??? ???!
¨C ???? ???? ? ???, 1947? ENIAC ??
???? ?? :
1947? ??, ?? ???? ??? ??? ???? ??¢ò ???? ??? ?? ?????
???? ?? ??? ????? ??. ??? ???? ??? ??? ?? ?? ???
??? ????? ???? ?, ???(relay)? ?? ??? ?? ???? ????
??(moth) ? ??? ???? ??.
??? ??? ??? ?? ??? ??? ?? ?? ???? ???? ???? ???.
??? ???? ??? ? ??? ????? ??(De-bugged)?? ???? ??
????? ???? ???.
?? : http://www.xeschool.com/xe/documents_for_debug
? ??? ???? ??
? ? ??? ?? (John von Neumann)
¨C EDVAC ??? ????, ???(binary) ??.
¨C ???? ?? ???? ??? ?? ??? ????? ??
¨C ??? ?? ?? ???? ? ??? ??? ??? ?? ??.
? ? ??? ????
¨C ??????(CPU), ???(memory), ??? ??(I/O device) ? ?????
3?? ????? ???? ???? ??? ??? ???.
? ? ??? ???? ?? ??
¨C ???? ???? ?? ?????(?? ??)? ???? ???? ?? ??
(?? ???, CD ?) ? ????.
¨C ?????? ????? ? ?? ?? ??(input device)? ????? ??
??? ????? ?? ???? ????.
¨C ??????(CPU)? ?? ??? ?? ??(load)? ???? ????
???? ??(processing)??, ?? ??? ?? ??(output device)? ???
?? ????.
? ??? ???? ???
?????
(Main Memory, RAM)
?? ??
(CU : Control Unit)
???? ??
(ALU : Arithmetic Logic Unit)
??????(Central Processing Unit)
?? ??
(Input Device)
?? ??
(Output Device)
???
(Accumulator)
??? ?? (I/O Device)
? ? ??? ??? ??? ?????? ???? ???? ?????? ?.
? ??? ??? ??? ???? ?? ??? ? ??? ?? ???, ?????? RAM? ?? ???? ???
??? ??? ?? ???? ???? ??? ??.
? ? ???? ?????? ???? ??? ? ???? ??? ????? ?? ? ??? ??? ???.
? ???(accumulator)? CPU ?? ?? ?? ???? ?? ???? ?????, ????? ????(register)
?? ???? ????? ?? ?? ? ?? ?? ? ? ??.
? ??? ????? ?? ??
? ?????? (Central Processing Unit)
¨C ?? ??(Control Unit)? ??????(Arithmetic Logic Unit)? ????.
¨C ?? ??? ??????? ??? ??(??)? ???? ?? ??? ???
????, ???? ??? ALU? ??? ?? ??? ??? ????.
¨C ??????? ?? ????? ?? ??? ?? ?? ???? ??(??
??)? ????.
? ??? ?? (Main memory)
¨C ?? ??? ???? ???? ????? ????? ???? ??.
¨C ???(binary) ??? ???? ?? ?? ??? ?? ???, ??? ???
??? ?? ?? ???? ?? ????.
? ??? ?? (Input/Output Device)
¨C ??????? ?????? ????? ???? ????? ?????
?? ??? ??? ???? ??.
¨C ???, ???, ???, ???, ?? ???, ???? ?? ? ??? ???
???? ??? ? ????? ???? ??? ? ?? ?? ?????.
? ??? ??? ????
? Fetch
¨C ?? ???(main memory)?? ??? ??? ??? Control Unit?? ???.
? Decode
¨C Control Unit? ???? ??.
? Execute
¨C ??? ??? ?? Control Unit ? memory?? ??? ???? ??? ?,
ALU? ???? ??? ????.
¨C ??? ???? ??? ???? ?? ???, ?? ??? ???? ????
?? ??? ?? ??? ????.
? Store
¨C ???? ?? ??? ?? ?? ???? ????.
? ????? ???(arithmetic operation)???? ??? ?? ? ?? ?? ???? ???? ???
???? ??(bool ??)? ?? ??? ????.
??(clock)? ??? ??
? Clock in CPU
¨C CPU ? ??? ??(clock)?? ?? ???? ?? ?? ??
¨C ?? ??? ??? ? ?? ? ?? ??? ????, ??? ????, ???
???? ALU? ??? ??? ? ??.
? ???? ?? ??? ?? ?? ??
¨C 1 Khz = ?? 1??, 1 Mhz = ?? 1 ??, 1 GHz = 10?
? ??/?? ??
¨C 32 bit CPU? ??? 32 bit, 64 bit CPU? ??? 64 bit ??
¨C 32 bit CPU? ?? ? ?? 4 byte ??? ??(?? ???) ?? ?????,
?????? ??? ? ??.
signal
Register vs. Memory
? ????(register)
¨C CPU ?? ???? ??? ?? ?? ??.
¨C ????? CPU ? bit ?? ?? ??? ????.
(32 bit type CPU? 32 bit, 64 bit CPU? 64 bit ??)
¨C CPU ?? ??? ??? ?? ??? ??? ????? ??.
? ?? ???(main memory)
¨C ??? ????? ?? ??? ???? ?? ?? ??.
¨C ?? ???? ??? ???? ?? ??? ? ??, CPU? ??? ?
CPU? ????? ???? ??? ???? ??(??)? ? ??? ??
?? ?? ???? ??.
? ??? ????? ?????...
?? ??? (Main memory)?????? : CPU
ALU + CU
Register
? CPU? ???? ??? ??? ?? ??? ???? ???? ??? ? ??.
? ?????, ????? ??? ????? ?? ALU, clock, register? ??.
? ???? ?? ??? ????? ??? ??? ?? ??? ??? ?, ??? ???? CPU? ??? ???
???? ??? ??? ???? ??? ????.
?????? ?? ??
?? ?? ???? ????...
??? ????? ¡°Ada¡±
? ??? ???? ?, ????? ????
(Ada Augusta King, Lady Lovelace. 1815-1851.)
¨C ?? ??? ??? ??????? ???.
¨C ??? ?? ??? ?? ? ??? ??? ??? ??
??? ?? ??.
? "???? ????? ?? ??
(Observations on Mr. Babbage's Analytical
Engine)¡± ??, 1842?
¨C ??? ???? ??? ? "????"? ?? ?.
¨C ????(subroutine), ??(loop), ??(jump) ?? ??
???, ¡°if ~ then" ???? ??.
¨C ??????? "If" ??? ??? ???, ???
???? ??? ??? ??? ?? ?? ????,
??? ??? ?? "??"? ??? "??"? ????
?? ????.
?? : ¡°?? ??? ?????? ??? ???????.¡±
http://shunman.tistory.com/99
?????? ??? ????
? ?????? ????? ?? ???
¨C ???, ?? ??, ? ??? ? ????? ????? ??? ??? ??
¨C ??? ??? ??(symbol)? ???? ????? ?? ??? ??.
? ?????? ?? ??, ??, ??? ???? ??? ?? ??.
¨C ??, ??? ?? ??? ????? ???? ?? ? ???? ???.
¨C ??? ??????? ?? ??? ?? ??? ????
???(????)?? ??.
¨C ??????? ??? ???? ??? ??.
¨C ????? ????, ? ??? ????? ????? ??????? ??.
?? ??, ? ?? ??? ??? ????. ??? 2? ??? ???
????? ???.
???? ?????
? A.K.A ?? ?? (turing machine)
¨C ???? ?????? ??? ?? ?? ??? ????? ??????,
?????? ???? ???? ? ??.
¨C ??? ??? '????'? ?? ??? ???? ???, ????? ???
????? ???? ?? ??? ??? ?? ??. ?????, C, C++, Java,
Python ?? ?? ??? ???.
? ?? (state) ??
¨C ????? ??? ????, ???? ????? ???? ??????
¨C ?????? ??? ????? ??? ? ?? ??? ??? ???. ?? ??, ??
??? ??? ??? ??? ?? ?? ??? ?? ??? ? ? ??.
¨C ?, ??? ????? ?? ??? ??? ??? ??? ??(update)??, ??
??? ??? ??? ??? ??? ???? ???? ?????. ???,
????? ????? ??? ?? ???? ???(statement)? ????
?????.
? ????? ??
¨C ????? ??? ?????? ????? ?? ??? ??
¨C ????? ??? ??? ??? ? ??, ????? ??? ???? ?????
?? ???? ????? ?????????, ?? ??? ????? ?? ??.
?? ?? : http://egloos.zum.com/illogic/v/1760902
??? ??? ?? ??? ??? ?????
? ???(statement)???
¨C ????(preprocessor)? ??? C ??? ??? ?? ???? ???? ???, types, statements?
??.
¨C ??(type)?? ?? ?? ??? ?? ? ???? ???? ????.
¨C ???(statement)? ?? ??? ??? ???? ?????? ??? ???? ????.
? ???? ?? ??
¨C ???? ?? ??? ??? ??/???? ??? ?? ??? ???? ???. ???? ??
???(built-in operator)? ??? if ~ else ?? ?? ??(control structure) ? for, while ? ????
loop ?? ??? ???.
¨C ???? ??? ???? block ?? ??. ????? ????? ?? ???? ???, ????
??? ?????? ?? ????. ??? statement ? ??? ?? ???? ??? ??????
????? ? ???? ?? ??? ????. ??? ???? block ??? ?? ???? ???
????. block ? control statement, loop ?? ????? ????.
? ???, ??
¨C block ?? ?? ?? ???? ??? ???? '?????.
¨C block ?? ????, ???? ?? ??(environment)? ??? ? ??? ???.
? ?? ??? ??? ????? ?? ??? ??? goto ??? ??? ???? ???
???? ?????(structured programming) ??? ??.
?? ?? : http://egloos.zum.com/illogic/v/1760902
C ????? ?? ?? ??
? C ????? main() ??? ??? ????(O/S) ?? ?????
????, ? main ??? ??? ???? main ???? ??? block
?? ???? block ?? ????? ???? ???? ???. ??,
main ??? ?? ???? ??? ????? ?? ?????.
?#?include ?<stdio.h>
int main( int argc, char * argv[] )
{
printf("Hello World!n");
return 0;
}
call main() !!!
????, ????, ??? ??? ??
? ? ??? ????, UNIX ???? ??? C ??
¨C ? ??? ??? ? ????, CPU? ???? ??? ??? ??? ?? ??? ???
?? ? ??? ???? ???? ????? ?? ? ? ??. ?????? ?? ?? ?
??? ????? ?? ??? ??? ???.
¨C C ??? UNIX ????? ?? ??? ??? ??? ???? ???? C ??? ???
? ??? UNIX?? ????? ??? ?? ??? ????? ???? ??? ???
?? ??? ????(Assembly) ??? ? ? ??? ??? ???? ? ???.
¨C ??? ????? ????? ?? ?????, ????? ??? ????? ?????
????? ???? ?? ????? ??? ??? ???. ??? ???? ???
??? ?? ?? ????. (Simple is Best!)
? ????? ???.
¨C ????? '??? ???' ??. ???? ???? ??? ?? ???? main ???
??????? ??? ???? ????? ? ???(entry point)?? ??? ??(exit
point)??.
¨C ????? ???? ? ??? ???? ??? ????(Operating System) ??,
????? ?? ??? ????. ????? ????? ????? ?? ?? ??
??? ???? 'main() ??'? ???? ???. ??? ??? ??? ?? ? ??.
??? ????? ??????? ?? ??? ???? ?? 0 (zero) ?? ?????
??? ??? ????. ? ?? ? - ?? ?? -1 ?? 1, ??? ?? 0? ?? ? -?
?????? ??? ?? ????.
main ??? argc ??? argv
? ? main ??? ??(parameter)? 2????
¨C main() ??? ????? ???? ????? ???? ?? ???? ??? ????.
???, ????? ????? ??? ? ???? ???? ???? ??(option ??
parameter)? main() ??? ??? ? ??? ??.
¨C ????? ??? ???(command line)?? ???? ???? ??? ??? ?? ??
????? ? ??? ??? ???? ??(space)?? ???? ????. ?? ???, 0
(zero)? ??? ??? ?? ???? ??? ? ??. ??? ??? ???? ?? ???
??? ??? ?? ?(???)? ??(?? ??)? ?? ????, ??? ??? ??
??? ???? ???? ?? ???? argc ? ??? ??? ?? ??? argv ???
????.
? ?? ??? ??
¨C argc ??? ???? ??(full name)? 'argument counter'??, argv ??? argument
variable ?? argument vector??.
¨C ac, av ??? argumentcounter, argumentvariable ??? ????? ??? ?? ??
?? ??? ???? ??? ?? ??? ??? ?? ??? ????, ?? ???
????? ??? ??? ????? ?? ??? ???? ??? ???? ???
??? ???. ??? ?? ? ?? ??? ???? ?? ??(abbrivation)? ??? ??
??? ???? ???.
COMPILE, LINK, LOAD
???? ??? ??? ????? ? ??????
????? ??????? ??
C program: foo.c
Assembly program: foo.s
Executable(mach lang pgm): a.out
Compiler
Assembler
Linker
Loader
Memory (Run)
Object(mach lang module): foo.o
lib.o
??? ?? ??
O b je c t
file
S o u rce
file
A ss e m b le r
L in ke rA ss e m b le r
A ss e m b le r
P ro g r a m
lib ra ry
O b je c t
file
O b je c t
file
S o u rce
file
S o u rce
file
E xe c u ta b le
file
? ???(compile)??, ??? ???? ?? ????? ??(high level programming language)?
???(machine language) ??? ??? ?, ????? ?????? ??? ? ?? ??? ??? ???
??? ???.
? ???? ???(compile)??? ????, ? ?? ????? compilter, assembler, linker ?? ?????
????.
? ???? ?????? 3?? ????? ?? ???? ??? ??? ?? ??? ??? ? ??.
??, ????, ??? ?? ??
Assembly ??C ?? ?? ??? ??
Compiler Assembler
???? (Compiler)
? ?? (Input)
¨C ?? ??? ?? ?? (High-Level language code)
¨C ?? ?? C, Java ?
? ?? (Output)
¨C ???? ?? ?? (Assembly language code)
¨C ?? ??, Intel x86, MIPS ?
? ?? ??
¨C ?? ??? ??? ?? ??(pseudo instruction)?? ????.
¨C ?? ??? ????(assembler)? ???? ??? ???? ??? ???
???. (?? ??, mov $s1, $s2 = or $s1, $s2, $zero)
???? (Assembler)
? ?? (Input)
¨C ???? ?? ?? (Assembly language code)
? ?? (Output)
¨C ?? ??? ??? ?? ??
(Nearly-complete image of executable code)
? ?? ??
¨C ???? ??? 16??? ??? ??? ????.
(Binary encoding of each instruction)
¨C ?? ?? ???? ?? ?? ?? ??(reference)? ???? ?? ??
(Missing linkages between code in different files)
?? (linker)
? ?? (Input)
¨C ?? ??? ???? ??
? ?? (Output)
¨C ?? ??? ???? ??
? ?? ??
¨C ?? ?? ???? ?? ?? ?? ??(???)? ?? ? ??
(Resolves references between files)
¨C ??? ??? ?????? ??
(Combines with static run-time libraries, e.g., code for malloc, printf)
¨C ?? ?????? ???? ??
(Some libraries are dynamically linked, linking occurs when program begins
execution)
?? (loader)
? ??? ??
¨C ?? ??? ???? ???? ??.
¨C ?? ??? ???? ??? ?? ??? ???? ??(load)? ? ???
????.
¨C ????? ??? ????? ?? ? ????.
? ??? ?? ??
¨C ?? ??? ??(header)? ?? ??? ??? ??? ????.
¨C ???? ??(allocate) ? ?, ????? ???? ????.
¨C ?? ???? ??? ? ??? ???? ?? ??? ??(stack)? ????.
¨C ???? ?? ?? CPU ????? ??? ??.
¨C ????? ?? ??? ????.
¨C ????? ???? ?? ??? ?? ?? ????? ????.

More Related Content

What's hot (20)

Computer architecture
Computer architectureComputer architecture
Computer architecture
Rishabha Garg
?
?§ß§Õ§ã§ï§ß §ä?§ç??§â?§Þ§Ø §Ò§Ñ §Õ§Ñ§Ô§Ñ§Ý§Õ§Ñ§ç, §ß§ï§Þ§ï§Ý§ä §ä?§ç??§â?§Þ§Ø??§Õ
?§ß§Õ§ã§ï§ß §ä?§ç??§â?§Þ§Ø §Ò§Ñ §Õ§Ñ§Ô§Ñ§Ý§Õ§Ñ§ç, §ß§ï§Þ§ï§Ý§ä §ä?§ç??§â?§Þ§Ø??§Õ?§ß§Õ§ã§ï§ß §ä?§ç??§â?§Þ§Ø §Ò§Ñ §Õ§Ñ§Ô§Ñ§Ý§Õ§Ñ§ç, §ß§ï§Þ§ï§Ý§ä §ä?§ç??§â?§Þ§Ø??§Õ
?§ß§Õ§ã§ï§ß §ä?§ç??§â?§Þ§Ø §Ò§Ñ §Õ§Ñ§Ô§Ñ§Ý§Õ§Ñ§ç, §ß§ï§Þ§ï§Ý§ä §ä?§ç??§â?§Þ§Ø??§Õ
§¢§Ñ§ñ§â§ã§Ñ§Û§ç§Ñ§ß §­
?
Kompiyuteriin undsen butets
Kompiyuteriin undsen butetsKompiyuteriin undsen butets
Kompiyuteriin undsen butets
shulam
?
×ÔÈ»ÓïÑÔ´¦Àí½éÉÜ
×ÔÈ»ÓïÑÔ´¦Àí½éÉÜ×ÔÈ»ÓïÑÔ´¦Àí½éÉÜ
×ÔÈ»ÓïÑÔ´¦Àí½éÉÜ
Mark Chang
?
EE5440 ¨C Computer Architecture - Lecture 1
EE5440 ¨C Computer Architecture - Lecture 1EE5440 ¨C Computer Architecture - Lecture 1
EE5440 ¨C Computer Architecture - Lecture 1
Dilawar Khan
?
Html §Ô§ï§Ø §ð§å §Ó§ï
Html §Ô§ï§Ø §ð§å §Ó§ïHtml §Ô§ï§Ø §ð§å §Ó§ï
Html §Ô§ï§Ø §ð§å §Ó§ï
Enhmandah Hemeelee
?
Ñо¿¶¯Ïò¤«¤é¿¼¤¨¤ë³æ86/³æ64×îÊÊ»¯ÊÖ·¨
Ñо¿¶¯Ïò¤«¤é¿¼¤¨¤ë³æ86/³æ64×îÊÊ»¯ÊÖ·¨Ñо¿¶¯Ïò¤«¤é¿¼¤¨¤ë³æ86/³æ64×îÊÊ»¯ÊÖ·¨
Ñо¿¶¯Ïò¤«¤é¿¼¤¨¤ë³æ86/³æ64×îÊÊ»¯ÊÖ·¨
Takeshi Yamamuro
?
Computer organization
Computer organizationComputer organization
Computer organization
Sumathi MathanMohan
?
EEPROM Part-21
EEPROM Part-21EEPROM Part-21
EEPROM Part-21
Techvilla
?
Von neumann architecture
Von neumann architectureVon neumann architecture
Von neumann architecture
AbdullaShakib1
?
Memory (Computer Organization)
Memory (Computer Organization)Memory (Computer Organization)
Memory (Computer Organization)
JyotiprakashMishra18
?
C Programming Compilation Process.pdf
C Programming Compilation Process.pdfC Programming Compilation Process.pdf
C Programming Compilation Process.pdf
AhmedAbdElGhafar17
?
1 - Pengertian Komputer.pdf
1 - Pengertian Komputer.pdf1 - Pengertian Komputer.pdf
1 - Pengertian Komputer.pdf
IshakManiyeni
?
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
Subhasis Dash
?
§¬§à§Þ§á§î§ð§ä§Ö§â§Ú§Û§ß §ä§Ö§ç§ß§Ú§Ü §ç§Ñ§ß§Ô§Ñ§Þ§Ø
§¬§à§Þ§á§î§ð§ä§Ö§â§Ú§Û§ß §ä§Ö§ç§ß§Ú§Ü §ç§Ñ§ß§Ô§Ñ§Þ§Ø§¬§à§Þ§á§î§ð§ä§Ö§â§Ú§Û§ß §ä§Ö§ç§ß§Ú§Ü §ç§Ñ§ß§Ô§Ñ§Þ§Ø
§¬§à§Þ§á§î§ð§ä§Ö§â§Ú§Û§ß §ä§Ö§ç§ß§Ú§Ü §ç§Ñ§ß§Ô§Ñ§Þ§Ø
Uyanga Tserengombo
?
Hypothetical machine and instruction flow scenarios
Hypothetical machine and instruction flow scenariosHypothetical machine and instruction flow scenarios
Hypothetical machine and instruction flow scenarios
Munaam Munawar
?
Computer Architecture and Organization.pptx
Computer Architecture and Organization.pptxComputer Architecture and Organization.pptx
Computer Architecture and Organization.pptx
LearnersCoach
?
?§ß§Õ§ã§ï§ß §ä?§ç??§â?§Þ§Ø §Ò§Ñ §Õ§Ñ§Ô§Ñ§Ý§Õ§Ñ§ç, §ß§ï§Þ§ï§Ý§ä §ä?§ç??§â?§Þ§Ø??§Õ
?§ß§Õ§ã§ï§ß §ä?§ç??§â?§Þ§Ø §Ò§Ñ §Õ§Ñ§Ô§Ñ§Ý§Õ§Ñ§ç, §ß§ï§Þ§ï§Ý§ä §ä?§ç??§â?§Þ§Ø??§Õ?§ß§Õ§ã§ï§ß §ä?§ç??§â?§Þ§Ø §Ò§Ñ §Õ§Ñ§Ô§Ñ§Ý§Õ§Ñ§ç, §ß§ï§Þ§ï§Ý§ä §ä?§ç??§â?§Þ§Ø??§Õ
?§ß§Õ§ã§ï§ß §ä?§ç??§â?§Þ§Ø §Ò§Ñ §Õ§Ñ§Ô§Ñ§Ý§Õ§Ñ§ç, §ß§ï§Þ§ï§Ý§ä §ä?§ç??§â?§Þ§Ø??§Õ
§¢§Ñ§ñ§â§ã§Ñ§Û§ç§Ñ§ß §­
?
Kompiyuteriin undsen butets
Kompiyuteriin undsen butetsKompiyuteriin undsen butets
Kompiyuteriin undsen butets
shulam
?
×ÔÈ»ÓïÑÔ´¦Àí½éÉÜ
×ÔÈ»ÓïÑÔ´¦Àí½éÉÜ×ÔÈ»ÓïÑÔ´¦Àí½éÉÜ
×ÔÈ»ÓïÑÔ´¦Àí½éÉÜ
Mark Chang
?
EE5440 ¨C Computer Architecture - Lecture 1
EE5440 ¨C Computer Architecture - Lecture 1EE5440 ¨C Computer Architecture - Lecture 1
EE5440 ¨C Computer Architecture - Lecture 1
Dilawar Khan
?
Html §Ô§ï§Ø §ð§å §Ó§ï
Html §Ô§ï§Ø §ð§å §Ó§ïHtml §Ô§ï§Ø §ð§å §Ó§ï
Html §Ô§ï§Ø §ð§å §Ó§ï
Enhmandah Hemeelee
?
Ñо¿¶¯Ïò¤«¤é¿¼¤¨¤ë³æ86/³æ64×îÊÊ»¯ÊÖ·¨
Ñо¿¶¯Ïò¤«¤é¿¼¤¨¤ë³æ86/³æ64×îÊÊ»¯ÊÖ·¨Ñо¿¶¯Ïò¤«¤é¿¼¤¨¤ë³æ86/³æ64×îÊÊ»¯ÊÖ·¨
Ñо¿¶¯Ïò¤«¤é¿¼¤¨¤ë³æ86/³æ64×îÊÊ»¯ÊÖ·¨
Takeshi Yamamuro
?
C Programming Compilation Process.pdf
C Programming Compilation Process.pdfC Programming Compilation Process.pdf
C Programming Compilation Process.pdf
AhmedAbdElGhafar17
?
1 - Pengertian Komputer.pdf
1 - Pengertian Komputer.pdf1 - Pengertian Komputer.pdf
1 - Pengertian Komputer.pdf
IshakManiyeni
?
Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1)
Subhasis Dash
?
§¬§à§Þ§á§î§ð§ä§Ö§â§Ú§Û§ß §ä§Ö§ç§ß§Ú§Ü §ç§Ñ§ß§Ô§Ñ§Þ§Ø
§¬§à§Þ§á§î§ð§ä§Ö§â§Ú§Û§ß §ä§Ö§ç§ß§Ú§Ü §ç§Ñ§ß§Ô§Ñ§Þ§Ø§¬§à§Þ§á§î§ð§ä§Ö§â§Ú§Û§ß §ä§Ö§ç§ß§Ú§Ü §ç§Ñ§ß§Ô§Ñ§Þ§Ø
§¬§à§Þ§á§î§ð§ä§Ö§â§Ú§Û§ß §ä§Ö§ç§ß§Ú§Ü §ç§Ñ§ß§Ô§Ñ§Þ§Ø
Uyanga Tserengombo
?
Hypothetical machine and instruction flow scenarios
Hypothetical machine and instruction flow scenariosHypothetical machine and instruction flow scenarios
Hypothetical machine and instruction flow scenarios
Munaam Munawar
?
Computer Architecture and Organization.pptx
Computer Architecture and Organization.pptxComputer Architecture and Organization.pptx
Computer Architecture and Organization.pptx
LearnersCoach
?

Viewers also liked (20)

?????? ??? ?? 2?? ??? ??? ?? ??
?????? ??? ?? 2?? ??? ??? ?? ???????? ??? ?? 2?? ??? ??? ?? ??
?????? ??? ?? 2?? ??? ??? ?? ??
?? ?
?
?????? ??? ?? ??? ?? ??
?????? ??? ?? ??? ?? ???????? ??? ?? ??? ?? ??
?????? ??? ?? ??? ?? ??
?? ?
?
????? ???? ?? ???? ??
????? ???? ?? ???? ??????? ???? ?? ???? ??
????? ???? ?? ???? ??
?? ?
?
Java ???? ????? ??? ?????
Java ???? ????? ??? ?????Java ???? ????? ??? ?????
Java ???? ????? ??? ?????
??? FunFun Yoo
?
??? ??? ????
??? ??? ??????? ??? ????
??? ??? ????
?? ?
?
???? ????
???? ???????? ????
???? ????
?? ?
?
????? ??? ?? ??
????? ??? ?? ??????? ??? ?? ??
????? ??? ?? ??
?? ?
?
???? ??
???? ?????? ??
???? ??
?? ?
?
??? ????? ???
??? ????? ?????? ????? ???
??? ????? ???
?? ?
?
??? ?? ??
??? ?? ????? ?? ??
??? ?? ??
?? ?
?
Intranet query tuning (example)
Intranet query tuning (example)Intranet query tuning (example)
Intranet query tuning (example)
?? ?
?
Online service ??? ?? ???? ??
Online service ??? ?? ???? ??Online service ??? ?? ???? ??
Online service ??? ?? ???? ??
?? ?
?
?? ???? ??
?? ???? ???? ???? ??
?? ???? ??
?? ?
?
Why OpenStack is Operating System?
Why OpenStack is Operating System?Why OpenStack is Operating System?
Why OpenStack is Operating System?
??? FunFun Yoo
?
???? ????? ?? ? ??? ?? (Example)
???? ????? ?? ? ??? ?? (Example)???? ????? ?? ? ??? ?? (Example)
???? ????? ?? ? ??? ?? (Example)
?? ?
?
??? ?? ? ??
??? ?? ? ????? ?? ? ??
??? ?? ? ??
?? ?
?
?? ???? ??
?? ???? ???? ???? ??
?? ???? ??
?? ?
?
?? ??? ?? ??? ??
?? ??? ?? ??? ???? ??? ?? ??? ??
?? ??? ?? ??? ??
?? ?
?
Test driven development short lesson
Test driven development   short lessonTest driven development   short lesson
Test driven development short lesson
?? ?
?
?????? ??? ?? 2?? ??? ??? ?? ??
?????? ??? ?? 2?? ??? ??? ?? ???????? ??? ?? 2?? ??? ??? ?? ??
?????? ??? ?? 2?? ??? ??? ?? ??
?? ?
?
?????? ??? ?? ??? ?? ??
?????? ??? ?? ??? ?? ???????? ??? ?? ??? ?? ??
?????? ??? ?? ??? ?? ??
?? ?
?
????? ???? ?? ???? ??
????? ???? ?? ???? ??????? ???? ?? ???? ??
????? ???? ?? ???? ??
?? ?
?
Java ???? ????? ??? ?????
Java ???? ????? ??? ?????Java ???? ????? ??? ?????
Java ???? ????? ??? ?????
??? FunFun Yoo
?
??? ??? ????
??? ??? ??????? ??? ????
??? ??? ????
?? ?
?
???? ????
???? ???????? ????
???? ????
?? ?
?
????? ??? ?? ??
????? ??? ?? ??????? ??? ?? ??
????? ??? ?? ??
?? ?
?
???? ??
???? ?????? ??
???? ??
?? ?
?
??? ????? ???
??? ????? ?????? ????? ???
??? ????? ???
?? ?
?
??? ?? ??
??? ?? ????? ?? ??
??? ?? ??
?? ?
?
Intranet query tuning (example)
Intranet query tuning (example)Intranet query tuning (example)
Intranet query tuning (example)
?? ?
?
Online service ??? ?? ???? ??
Online service ??? ?? ???? ??Online service ??? ?? ???? ??
Online service ??? ?? ???? ??
?? ?
?
?? ???? ??
?? ???? ???? ???? ??
?? ???? ??
?? ?
?
Why OpenStack is Operating System?
Why OpenStack is Operating System?Why OpenStack is Operating System?
Why OpenStack is Operating System?
??? FunFun Yoo
?
???? ????? ?? ? ??? ?? (Example)
???? ????? ?? ? ??? ?? (Example)???? ????? ?? ? ??? ?? (Example)
???? ????? ?? ? ??? ?? (Example)
?? ?
?
??? ?? ? ??
??? ?? ? ????? ?? ? ??
??? ?? ? ??
?? ?
?
?? ???? ??
?? ???? ???? ???? ??
?? ???? ??
?? ?
?
?? ??? ?? ??? ??
?? ??? ?? ??? ???? ??? ?? ??? ??
?? ??? ?? ??? ??
?? ?
?
Test driven development short lesson
Test driven development   short lessonTest driven development   short lesson
Test driven development short lesson
?? ?
?

Similar to ?????? ?? ?? ?? (20)

System+os study 1
System+os study 1System+os study 1
System+os study 1
J J
?
Assembly ??? 1
Assembly ??? 1Assembly ??? 1
Assembly ??? 1
J J
?
01. Computer System Basics with C Language
01. Computer System Basics with C Language01. Computer System Basics with C Language
01. Computer System Basics with C Language
jeff8272
?
?? ?????
?? ??????? ?????
?? ?????
?? ?
?
???? ?? ??
???? ?? ?????? ?? ??
???? ?? ??
?? ?
?
??? ???? ????? ?? ????? ?? ? ???? ????
??? ???? ????? ?? ????? ?? ? ???? ??????? ???? ????? ?? ????? ?? ? ???? ????
??? ???? ????? ?? ????? ?? ? ???? ????
Seunghwa Song
?
[2B2]???? ??????????? ?????????? ????????? ??????? ?????
[2B2]???? ??????????? ?????????? ????????? ??????? ?????[2B2]???? ??????????? ?????????? ????????? ??????? ?????
[2B2]???? ??????????? ?????????? ????????? ??????? ?????
NAVER D2
?
Howto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear RegressionHowto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear Regression
Hyo jeong Lee
?
Foss open sorucesw_6902
Foss open sorucesw_6902Foss open sorucesw_6902
Foss open sorucesw_6902
?? ?
?
??? - ???? ??? ??? (2011Y03M26D)
??? - ???? ??? ??? (2011Y03M26D)??? - ???? ??? ??? (2011Y03M26D)
??? - ???? ??? ??? (2011Y03M26D)
Ubuntu Korea Community
?
[2011 CodeEngn Conference 05] ashine - ????? ?????? ??? ??
[2011 CodeEngn Conference 05] ashine - ????? ?????? ??? ??[2011 CodeEngn Conference 05] ashine - ????? ?????? ??? ??
[2011 CodeEngn Conference 05] ashine - ????? ?????? ??? ??
GangSeok Lee
?
????? ??? W3 ??: ??? ??
????? ??? W3 ??: ??? ??????? ??? W3 ??: ??? ??
????? ??? W3 ??: ??? ??
ssuser91b87c
?
?????? ??? ???? CPU ??? - 15, 16?
?????? ??? ????  CPU ??? - 15, 16??????? ??? ????  CPU ??? - 15, 16?
?????? ??? ???? CPU ??? - 15, 16?
JangHyuk You
?
??? ??? ??? ?? ??? 8? - 1,2,3?
??? ??? ??? ?? ??? 8? - 1,2,3???? ??? ??? ?? ??? 8? - 1,2,3?
??? ??? ??? ?? ??? 8? - 1,2,3?
Sunggon Song
?
[232] ????????????????????????? ????????
[232] ????????????????????????? ????????[232] ????????????????????????? ????????
[232] ????????????????????????? ????????
NAVER D2
?
Linux programming study
Linux programming studyLinux programming study
Linux programming study
Yunseok Lee
?
????? C&JAVA ???? ???? ????? ??(2)
????? C&JAVA ???? ???? ????? ??(2)????? C&JAVA ???? ???? ????? ??(2)
????? C&JAVA ???? ???? ????? ??(2)
??????
?
??? ?? 1 - ??
??? ?? 1 - ????? ?? 1 - ??
??? ?? 1 - ??
Jaewook Byun
?
??100 ??? ???? 5
??100 ??? ???? 5??100 ??? ???? 5
??100 ??? ???? 5
?? ?
?
OS Process, Thread, CPU Scheduling? ?? ?????.pdf
OS Process, Thread, CPU Scheduling? ?? ?????.pdfOS Process, Thread, CPU Scheduling? ?? ?????.pdf
OS Process, Thread, CPU Scheduling? ?? ?????.pdf
Ho Jeong Im
?
System+os study 1
System+os study 1System+os study 1
System+os study 1
J J
?
Assembly ??? 1
Assembly ??? 1Assembly ??? 1
Assembly ??? 1
J J
?
01. Computer System Basics with C Language
01. Computer System Basics with C Language01. Computer System Basics with C Language
01. Computer System Basics with C Language
jeff8272
?
?? ?????
?? ??????? ?????
?? ?????
?? ?
?
???? ?? ??
???? ?? ?????? ?? ??
???? ?? ??
?? ?
?
??? ???? ????? ?? ????? ?? ? ???? ????
??? ???? ????? ?? ????? ?? ? ???? ??????? ???? ????? ?? ????? ?? ? ???? ????
??? ???? ????? ?? ????? ?? ? ???? ????
Seunghwa Song
?
[2B2]???? ??????????? ?????????? ????????? ??????? ?????
[2B2]???? ??????????? ?????????? ????????? ??????? ?????[2B2]???? ??????????? ?????????? ????????? ??????? ?????
[2B2]???? ??????????? ?????????? ????????? ??????? ?????
NAVER D2
?
Howto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear RegressionHowto_Tensorflow+Linear Regression
Howto_Tensorflow+Linear Regression
Hyo jeong Lee
?
Foss open sorucesw_6902
Foss open sorucesw_6902Foss open sorucesw_6902
Foss open sorucesw_6902
?? ?
?
[2011 CodeEngn Conference 05] ashine - ????? ?????? ??? ??
[2011 CodeEngn Conference 05] ashine - ????? ?????? ??? ??[2011 CodeEngn Conference 05] ashine - ????? ?????? ??? ??
[2011 CodeEngn Conference 05] ashine - ????? ?????? ??? ??
GangSeok Lee
?
????? ??? W3 ??: ??? ??
????? ??? W3 ??: ??? ??????? ??? W3 ??: ??? ??
????? ??? W3 ??: ??? ??
ssuser91b87c
?
?????? ??? ???? CPU ??? - 15, 16?
?????? ??? ????  CPU ??? - 15, 16??????? ??? ????  CPU ??? - 15, 16?
?????? ??? ???? CPU ??? - 15, 16?
JangHyuk You
?
??? ??? ??? ?? ??? 8? - 1,2,3?
??? ??? ??? ?? ??? 8? - 1,2,3???? ??? ??? ?? ??? 8? - 1,2,3?
??? ??? ??? ?? ??? 8? - 1,2,3?
Sunggon Song
?
[232] ????????????????????????? ????????
[232] ????????????????????????? ????????[232] ????????????????????????? ????????
[232] ????????????????????????? ????????
NAVER D2
?
Linux programming study
Linux programming studyLinux programming study
Linux programming study
Yunseok Lee
?
????? C&JAVA ???? ???? ????? ??(2)
????? C&JAVA ???? ???? ????? ??(2)????? C&JAVA ???? ???? ????? ??(2)
????? C&JAVA ???? ???? ????? ??(2)
??????
?
??100 ??? ???? 5
??100 ??? ???? 5??100 ??? ???? 5
??100 ??? ???? 5
?? ?
?
OS Process, Thread, CPU Scheduling? ?? ?????.pdf
OS Process, Thread, CPU Scheduling? ?? ?????.pdfOS Process, Thread, CPU Scheduling? ?? ?????.pdf
OS Process, Thread, CPU Scheduling? ?? ?????.pdf
Ho Jeong Im
?

More from ?? ? (13)

Tomcat monitoring using_javamelody
Tomcat monitoring using_javamelodyTomcat monitoring using_javamelody
Tomcat monitoring using_javamelody
?? ?
?
Web service performance_test_using_jmeter_ver1.2
Web service performance_test_using_jmeter_ver1.2Web service performance_test_using_jmeter_ver1.2
Web service performance_test_using_jmeter_ver1.2
?? ?
?
Db ?? ? ?? ?? (example)
Db ?? ? ?? ?? (example)Db ?? ? ?? ?? (example)
Db ?? ? ?? ?? (example)
?? ?
?
Scale up and scale out
Scale up and scale outScale up and scale out
Scale up and scale out
?? ?
?
Java rmi ?? ???
Java rmi ?? ???Java rmi ?? ???
Java rmi ?? ???
?? ?
?
Java rmi ?? ???
Java rmi ?? ???Java rmi ?? ???
Java rmi ?? ???
?? ?
?
?? ??? (Java serialization)
?? ??? (Java serialization)?? ??? (Java serialization)
?? ??? (Java serialization)
?? ?
?
?? ??? ?? (Digit group separators)
?? ??? ?? (Digit group separators)?? ??? ?? (Digit group separators)
?? ??? ?? (Digit group separators)
?? ?
?
Apache ZooKeeper ??
Apache ZooKeeper ??Apache ZooKeeper ??
Apache ZooKeeper ??
?? ?
?
???? ?? ??? 5? ??
???? ?? ??? 5? ?????? ?? ??? 5? ??
???? ?? ??? 5? ??
?? ?
?
Effective java 1 and 2
Effective java 1 and 2Effective java 1 and 2
Effective java 1 and 2
?? ?
?
???? ??
???? ?????? ??
???? ??
?? ?
?
Continue break goto_?_??_??
Continue break goto_?_??_??Continue break goto_?_??_??
Continue break goto_?_??_??
?? ?
?
Tomcat monitoring using_javamelody
Tomcat monitoring using_javamelodyTomcat monitoring using_javamelody
Tomcat monitoring using_javamelody
?? ?
?
Web service performance_test_using_jmeter_ver1.2
Web service performance_test_using_jmeter_ver1.2Web service performance_test_using_jmeter_ver1.2
Web service performance_test_using_jmeter_ver1.2
?? ?
?
Db ?? ? ?? ?? (example)
Db ?? ? ?? ?? (example)Db ?? ? ?? ?? (example)
Db ?? ? ?? ?? (example)
?? ?
?
Scale up and scale out
Scale up and scale outScale up and scale out
Scale up and scale out
?? ?
?
Java rmi ?? ???
Java rmi ?? ???Java rmi ?? ???
Java rmi ?? ???
?? ?
?
Java rmi ?? ???
Java rmi ?? ???Java rmi ?? ???
Java rmi ?? ???
?? ?
?
?? ??? (Java serialization)
?? ??? (Java serialization)?? ??? (Java serialization)
?? ??? (Java serialization)
?? ?
?
?? ??? ?? (Digit group separators)
?? ??? ?? (Digit group separators)?? ??? ?? (Digit group separators)
?? ??? ?? (Digit group separators)
?? ?
?
Apache ZooKeeper ??
Apache ZooKeeper ??Apache ZooKeeper ??
Apache ZooKeeper ??
?? ?
?
???? ?? ??? 5? ??
???? ?? ??? 5? ?????? ?? ??? 5? ??
???? ?? ??? 5? ??
?? ?
?
Effective java 1 and 2
Effective java 1 and 2Effective java 1 and 2
Effective java 1 and 2
?? ?
?
???? ??
???? ?????? ??
???? ??
?? ?
?
Continue break goto_?_??_??
Continue break goto_?_??_??Continue break goto_?_??_??
Continue break goto_?_??_??
?? ?
?

?????? ?? ?? ??

  • 1. ?????? ?? ?? ?? (???? ??, ??? ? ????...) Sunny Kwak (sunnykwak@daum.net)
  • 2. ? ? ? ? ??? ???? ¨C ??? ?? ??? ¨C ???? ?? ¨C ??? ??? ¨C ??? ??? ¨C ? ??? ???? ?? ¨C ? ??? ???? ??? ¨C ? ??? ????? ?? ?? ¨C ? ??? ??? ???? ¨C ??(clock)? ??? ?? ¨C Register vs. Memory ¨C ? ??? ????? ?????... ? ?????? ?? ?? ¨C ??? ????? ¡°Ada¡± ¨C ?????? ??? ???? ¨C ???? ????? ¨C ??? ??? ?? ??? ??? ????? ¨C C ????? ?? ?? ?? ¨C ????, ????, ??? ??? ?? ¨C main ??? argc ??? argv ? COMPILE, LINK, LOAD ¨C ????? ??????? ?? ¨C ??? ?? ?? ¨C ??, ????, ??? ?? ?? ¨C ???? (Compiler) ¨C ???? (Assembler) ¨C ?? (linker) ¨C ?? (loader)
  • 3. ? ??? ???? ????? ???? ?! ????? ??
  • 4. ??? ?? ??? ? ??? ??????? ??? ???? ¨C ¡°calculate¡±, ??? ¡°compute¡± ? ????. ¨C ???? ???? ??? ????, ¡°~er¡±? ???. ? ??, ¡°Calculator¡±? ¡°Computer¡±? ?? ???? ¨C Calculator? ?????, Computer? ??????? ?????. ¨C ?? ?? ???? ?? ??? ??? ????. ¨C ??(origin)? ??? ?? ?? ?? ??? ??(??, origin)? ??? ????. ??? ???? ??? ???? ????. ? ? ?????? ??? ? ?????.
  • 5. ???? ?? ? ?? ????? ??? ¡°??¡± ??? ? ???. ??? ??? ?????, ??? ?????.
  • 6. ??? ??? ? 17??, ??? ? ??? ???, ???? ???? ?? ? 19??, ?? ???, ???? ????? ?? ?? ???? ??? ?? ????(Pascaline) ???? ????
  • 7. ??? ??? ? ?????? ?????? ?? ¨C ?????? ??? ??(??)? ?? ??? ??? ? ??. ??? ???? ???? ???? ? ??? ???? ????. ¨C ?????? ???? ????? ??? ???? ???? ???? ?? ????. ¨C ?, ?? ??(???? ??)? ???, ??? ??? ???? ???, ??? ??? ??? ? ??? ??. ? ??? ???? ??? ¨C ??? ?? (Conrad Zuse, 1910~1995), Z3 ? Z4 ?? ¨C ??? ???(Howard Aiken), 1944? Mark-1 ?? ¨C ???? ??? ??(Grace Murray Hopper), ??? ???! ¨C ???? ???? ? ???, 1947? ENIAC ?? ???? ?? : 1947? ??, ?? ???? ??? ??? ???? ??¢ò ???? ??? ?? ????? ???? ?? ??? ????? ??. ??? ???? ??? ??? ?? ?? ??? ??? ????? ???? ?, ???(relay)? ?? ??? ?? ???? ???? ??(moth) ? ??? ???? ??. ??? ??? ??? ?? ??? ??? ?? ?? ???? ???? ???? ???. ??? ???? ??? ? ??? ????? ??(De-bugged)?? ???? ?? ????? ???? ???. ?? : http://www.xeschool.com/xe/documents_for_debug
  • 8. ? ??? ???? ?? ? ? ??? ?? (John von Neumann) ¨C EDVAC ??? ????, ???(binary) ??. ¨C ???? ?? ???? ??? ?? ??? ????? ?? ¨C ??? ?? ?? ???? ? ??? ??? ??? ?? ??. ? ? ??? ???? ¨C ??????(CPU), ???(memory), ??? ??(I/O device) ? ????? 3?? ????? ???? ???? ??? ??? ???. ? ? ??? ???? ?? ?? ¨C ???? ???? ?? ?????(?? ??)? ???? ???? ?? ?? (?? ???, CD ?) ? ????. ¨C ?????? ????? ? ?? ?? ??(input device)? ????? ?? ??? ????? ?? ???? ????. ¨C ??????(CPU)? ?? ??? ?? ??(load)? ???? ???? ???? ??(processing)??, ?? ??? ?? ??(output device)? ??? ?? ????.
  • 9. ? ??? ???? ??? ????? (Main Memory, RAM) ?? ?? (CU : Control Unit) ???? ?? (ALU : Arithmetic Logic Unit) ??????(Central Processing Unit) ?? ?? (Input Device) ?? ?? (Output Device) ??? (Accumulator) ??? ?? (I/O Device) ? ? ??? ??? ??? ?????? ???? ???? ?????? ?. ? ??? ??? ??? ???? ?? ??? ? ??? ?? ???, ?????? RAM? ?? ???? ??? ??? ??? ?? ???? ???? ??? ??. ? ? ???? ?????? ???? ??? ? ???? ??? ????? ?? ? ??? ??? ???. ? ???(accumulator)? CPU ?? ?? ?? ???? ?? ???? ?????, ????? ????(register) ?? ???? ????? ?? ?? ? ?? ?? ? ? ??.
  • 10. ? ??? ????? ?? ?? ? ?????? (Central Processing Unit) ¨C ?? ??(Control Unit)? ??????(Arithmetic Logic Unit)? ????. ¨C ?? ??? ??????? ??? ??(??)? ???? ?? ??? ??? ????, ???? ??? ALU? ??? ?? ??? ??? ????. ¨C ??????? ?? ????? ?? ??? ?? ?? ???? ??(?? ??)? ????. ? ??? ?? (Main memory) ¨C ?? ??? ???? ???? ????? ????? ???? ??. ¨C ???(binary) ??? ???? ?? ?? ??? ?? ???, ??? ??? ??? ?? ?? ???? ?? ????. ? ??? ?? (Input/Output Device) ¨C ??????? ?????? ????? ???? ????? ????? ?? ??? ??? ???? ??. ¨C ???, ???, ???, ???, ?? ???, ???? ?? ? ??? ??? ???? ??? ? ????? ???? ??? ? ?? ?? ?????.
  • 11. ? ??? ??? ???? ? Fetch ¨C ?? ???(main memory)?? ??? ??? ??? Control Unit?? ???. ? Decode ¨C Control Unit? ???? ??. ? Execute ¨C ??? ??? ?? Control Unit ? memory?? ??? ???? ??? ?, ALU? ???? ??? ????. ¨C ??? ???? ??? ???? ?? ???, ?? ??? ???? ???? ?? ??? ?? ??? ????. ? Store ¨C ???? ?? ??? ?? ?? ???? ????. ? ????? ???(arithmetic operation)???? ??? ?? ? ?? ?? ???? ???? ??? ???? ??(bool ??)? ?? ??? ????.
  • 12. ??(clock)? ??? ?? ? Clock in CPU ¨C CPU ? ??? ??(clock)?? ?? ???? ?? ?? ?? ¨C ?? ??? ??? ? ?? ? ?? ??? ????, ??? ????, ??? ???? ALU? ??? ??? ? ??. ? ???? ?? ??? ?? ?? ?? ¨C 1 Khz = ?? 1??, 1 Mhz = ?? 1 ??, 1 GHz = 10? ? ??/?? ?? ¨C 32 bit CPU? ??? 32 bit, 64 bit CPU? ??? 64 bit ?? ¨C 32 bit CPU? ?? ? ?? 4 byte ??? ??(?? ???) ?? ?????, ?????? ??? ? ??. signal
  • 13. Register vs. Memory ? ????(register) ¨C CPU ?? ???? ??? ?? ?? ??. ¨C ????? CPU ? bit ?? ?? ??? ????. (32 bit type CPU? 32 bit, 64 bit CPU? 64 bit ??) ¨C CPU ?? ??? ??? ?? ??? ??? ????? ??. ? ?? ???(main memory) ¨C ??? ????? ?? ??? ???? ?? ?? ??. ¨C ?? ???? ??? ???? ?? ??? ? ??, CPU? ??? ? CPU? ????? ???? ??? ???? ??(??)? ? ??? ?? ?? ?? ???? ??.
  • 14. ? ??? ????? ?????... ?? ??? (Main memory)?????? : CPU ALU + CU Register ? CPU? ???? ??? ??? ?? ??? ???? ???? ??? ? ??. ? ?????, ????? ??? ????? ?? ALU, clock, register? ??. ? ???? ?? ??? ????? ??? ??? ?? ??? ??? ?, ??? ???? CPU? ??? ??? ???? ??? ??? ???? ??? ????.
  • 15. ?????? ?? ?? ?? ?? ???? ????...
  • 16. ??? ????? ¡°Ada¡± ? ??? ???? ?, ????? ???? (Ada Augusta King, Lady Lovelace. 1815-1851.) ¨C ?? ??? ??? ??????? ???. ¨C ??? ?? ??? ?? ? ??? ??? ??? ?? ??? ?? ??. ? "???? ????? ?? ?? (Observations on Mr. Babbage's Analytical Engine)¡± ??, 1842? ¨C ??? ???? ??? ? "????"? ?? ?. ¨C ????(subroutine), ??(loop), ??(jump) ?? ?? ???, ¡°if ~ then" ???? ??. ¨C ??????? "If" ??? ??? ???, ??? ???? ??? ??? ??? ?? ?? ????, ??? ??? ?? "??"? ??? "??"? ???? ?? ????. ?? : ¡°?? ??? ?????? ??? ???????.¡± http://shunman.tistory.com/99
  • 17. ?????? ??? ???? ? ?????? ????? ?? ??? ¨C ???, ?? ??, ? ??? ? ????? ????? ??? ??? ?? ¨C ??? ??? ??(symbol)? ???? ????? ?? ??? ??. ? ?????? ?? ??, ??, ??? ???? ??? ?? ??. ¨C ??, ??? ?? ??? ????? ???? ?? ? ???? ???. ¨C ??? ??????? ?? ??? ?? ??? ???? ???(????)?? ??. ¨C ??????? ??? ???? ??? ??. ¨C ????? ????, ? ??? ????? ????? ??????? ??. ?? ??, ? ?? ??? ??? ????. ??? 2? ??? ??? ????? ???.
  • 18. ???? ????? ? A.K.A ?? ?? (turing machine) ¨C ???? ?????? ??? ?? ?? ??? ????? ??????, ?????? ???? ???? ? ??. ¨C ??? ??? '????'? ?? ??? ???? ???, ????? ??? ????? ???? ?? ??? ??? ?? ??. ?????, C, C++, Java, Python ?? ?? ??? ???. ? ?? (state) ?? ¨C ????? ??? ????, ???? ????? ???? ?????? ¨C ?????? ??? ????? ??? ? ?? ??? ??? ???. ?? ??, ?? ??? ??? ??? ??? ?? ?? ??? ?? ??? ? ? ??. ¨C ?, ??? ????? ?? ??? ??? ??? ??? ??(update)??, ?? ??? ??? ??? ??? ??? ???? ???? ?????. ???, ????? ????? ??? ?? ???? ???(statement)? ???? ?????. ? ????? ?? ¨C ????? ??? ?????? ????? ?? ??? ?? ¨C ????? ??? ??? ??? ? ??, ????? ??? ???? ????? ?? ???? ????? ?????????, ?? ??? ????? ?? ??. ?? ?? : http://egloos.zum.com/illogic/v/1760902
  • 19. ??? ??? ?? ??? ??? ????? ? ???(statement)??? ¨C ????(preprocessor)? ??? C ??? ??? ?? ???? ???? ???, types, statements? ??. ¨C ??(type)?? ?? ?? ??? ?? ? ???? ???? ????. ¨C ???(statement)? ?? ??? ??? ???? ?????? ??? ???? ????. ? ???? ?? ?? ¨C ???? ?? ??? ??? ??/???? ??? ?? ??? ???? ???. ???? ?? ???(built-in operator)? ??? if ~ else ?? ?? ??(control structure) ? for, while ? ???? loop ?? ??? ???. ¨C ???? ??? ???? block ?? ??. ????? ????? ?? ???? ???, ???? ??? ?????? ?? ????. ??? statement ? ??? ?? ???? ??? ?????? ????? ? ???? ?? ??? ????. ??? ???? block ??? ?? ???? ??? ????. block ? control statement, loop ?? ????? ????. ? ???, ?? ¨C block ?? ?? ?? ???? ??? ???? '?????. ¨C block ?? ????, ???? ?? ??(environment)? ??? ? ??? ???. ? ?? ??? ??? ????? ?? ??? ??? goto ??? ??? ???? ??? ???? ?????(structured programming) ??? ??. ?? ?? : http://egloos.zum.com/illogic/v/1760902
  • 20. C ????? ?? ?? ?? ? C ????? main() ??? ??? ????(O/S) ?? ????? ????, ? main ??? ??? ???? main ???? ??? block ?? ???? block ?? ????? ???? ???? ???. ??, main ??? ?? ???? ??? ????? ?? ?????. ?#?include ?<stdio.h> int main( int argc, char * argv[] ) { printf("Hello World!n"); return 0; } call main() !!!
  • 21. ????, ????, ??? ??? ?? ? ? ??? ????, UNIX ???? ??? C ?? ¨C ? ??? ??? ? ????, CPU? ???? ??? ??? ??? ?? ??? ??? ?? ? ??? ???? ???? ????? ?? ? ? ??. ?????? ?? ?? ? ??? ????? ?? ??? ??? ???. ¨C C ??? UNIX ????? ?? ??? ??? ??? ???? ???? C ??? ??? ? ??? UNIX?? ????? ??? ?? ??? ????? ???? ??? ??? ?? ??? ????(Assembly) ??? ? ? ??? ??? ???? ? ???. ¨C ??? ????? ????? ?? ?????, ????? ??? ????? ????? ????? ???? ?? ????? ??? ??? ???. ??? ???? ??? ??? ?? ?? ????. (Simple is Best!) ? ????? ???. ¨C ????? '??? ???' ??. ???? ???? ??? ?? ???? main ??? ??????? ??? ???? ????? ? ???(entry point)?? ??? ??(exit point)??. ¨C ????? ???? ? ??? ???? ??? ????(Operating System) ??, ????? ?? ??? ????. ????? ????? ????? ?? ?? ?? ??? ???? 'main() ??'? ???? ???. ??? ??? ??? ?? ? ??. ??? ????? ??????? ?? ??? ???? ?? 0 (zero) ?? ????? ??? ??? ????. ? ?? ? - ?? ?? -1 ?? 1, ??? ?? 0? ?? ? -? ?????? ??? ?? ????.
  • 22. main ??? argc ??? argv ? ? main ??? ??(parameter)? 2???? ¨C main() ??? ????? ???? ????? ???? ?? ???? ??? ????. ???, ????? ????? ??? ? ???? ???? ???? ??(option ?? parameter)? main() ??? ??? ? ??? ??. ¨C ????? ??? ???(command line)?? ???? ???? ??? ??? ?? ?? ????? ? ??? ??? ???? ??(space)?? ???? ????. ?? ???, 0 (zero)? ??? ??? ?? ???? ??? ? ??. ??? ??? ???? ?? ??? ??? ??? ?? ?(???)? ??(?? ??)? ?? ????, ??? ??? ?? ??? ???? ???? ?? ???? argc ? ??? ??? ?? ??? argv ??? ????. ? ?? ??? ?? ¨C argc ??? ???? ??(full name)? 'argument counter'??, argv ??? argument variable ?? argument vector??. ¨C ac, av ??? argumentcounter, argumentvariable ??? ????? ??? ?? ?? ?? ??? ???? ??? ?? ??? ??? ?? ??? ????, ?? ??? ????? ??? ??? ????? ?? ??? ???? ??? ???? ??? ??? ???. ??? ?? ? ?? ??? ???? ?? ??(abbrivation)? ??? ?? ??? ???? ???.
  • 23. COMPILE, LINK, LOAD ???? ??? ??? ????? ? ??????
  • 24. ????? ??????? ?? C program: foo.c Assembly program: foo.s Executable(mach lang pgm): a.out Compiler Assembler Linker Loader Memory (Run) Object(mach lang module): foo.o lib.o
  • 25. ??? ?? ?? O b je c t file S o u rce file A ss e m b le r L in ke rA ss e m b le r A ss e m b le r P ro g r a m lib ra ry O b je c t file O b je c t file S o u rce file S o u rce file E xe c u ta b le file ? ???(compile)??, ??? ???? ?? ????? ??(high level programming language)? ???(machine language) ??? ??? ?, ????? ?????? ??? ? ?? ??? ??? ??? ??? ???. ? ???? ???(compile)??? ????, ? ?? ????? compilter, assembler, linker ?? ????? ????. ? ???? ?????? 3?? ????? ?? ???? ??? ??? ?? ??? ??? ? ??.
  • 26. ??, ????, ??? ?? ?? Assembly ??C ?? ?? ??? ?? Compiler Assembler
  • 27. ???? (Compiler) ? ?? (Input) ¨C ?? ??? ?? ?? (High-Level language code) ¨C ?? ?? C, Java ? ? ?? (Output) ¨C ???? ?? ?? (Assembly language code) ¨C ?? ??, Intel x86, MIPS ? ? ?? ?? ¨C ?? ??? ??? ?? ??(pseudo instruction)?? ????. ¨C ?? ??? ????(assembler)? ???? ??? ???? ??? ??? ???. (?? ??, mov $s1, $s2 = or $s1, $s2, $zero)
  • 28. ???? (Assembler) ? ?? (Input) ¨C ???? ?? ?? (Assembly language code) ? ?? (Output) ¨C ?? ??? ??? ?? ?? (Nearly-complete image of executable code) ? ?? ?? ¨C ???? ??? 16??? ??? ??? ????. (Binary encoding of each instruction) ¨C ?? ?? ???? ?? ?? ?? ??(reference)? ???? ?? ?? (Missing linkages between code in different files)
  • 29. ?? (linker) ? ?? (Input) ¨C ?? ??? ???? ?? ? ?? (Output) ¨C ?? ??? ???? ?? ? ?? ?? ¨C ?? ?? ???? ?? ?? ?? ??(???)? ?? ? ?? (Resolves references between files) ¨C ??? ??? ?????? ?? (Combines with static run-time libraries, e.g., code for malloc, printf) ¨C ?? ?????? ???? ?? (Some libraries are dynamically linked, linking occurs when program begins execution)
  • 30. ?? (loader) ? ??? ?? ¨C ?? ??? ???? ???? ??. ¨C ?? ??? ???? ??? ?? ??? ???? ??(load)? ? ??? ????. ¨C ????? ??? ????? ?? ? ????. ? ??? ?? ?? ¨C ?? ??? ??(header)? ?? ??? ??? ??? ????. ¨C ???? ??(allocate) ? ?, ????? ???? ????. ¨C ?? ???? ??? ? ??? ???? ?? ??? ??(stack)? ????. ¨C ???? ?? ?? CPU ????? ??? ??. ¨C ????? ?? ??? ????. ¨C ????? ???? ?? ??? ?? ?? ????? ????.