roychuang
What is CPU
What is CPU
What is CPU
How CPU Works
How CPU works
CPU Architecture
Assembly & Binary Executable
Assembly & Binary Executable
Compile
Assembly
Assembly & Binary Executable
C vs Assembly
// Simple Hello World program in C
#include<stdio.h>
int main()
{
// printf() is a output function which prints
// the passed string in the output console
printf("Hello World!");
return 0;
}
.file "hello.c"
.def ___main; .scl 2; .type 32; .endef
.section .rdata,"dr"
LC0:
.ascii "Hello World!\0"
.text
.globl _main
.def _main; .scl 2; .type 32; .endef
_main:
LFB12:
.cfi_startproc
pushl %ebp
.cfi_def_cfa_offset 8
.cfi_offset 5, -8
movl %esp, %ebp
.cfi_def_cfa_register 5
andl $-16, %esp
subl $16, %esp
call ___main
movl $LC0, (%esp)
call _printf
movl $0, %eax
leave
.cfi_restore 5
.cfi_def_cfa 4, 4
ret
.cfi_endproc
LFE12:
.ident "GCC: (MinGW.org GCC-6.3.0-1) 6.3.0"
.def _printf; .scl 2; .type 32; .endef
Assembly & Binary Executable
想學記得去資安小社
Assembly & Binary Executable
Assemble
Assembly & Binary Executable
Opcode
Assembly & Binary Executable
這應該是 x86
Logic Gates
Logic Gates
Turing Complete
Logic Gates
Logic Gates
Logic Gates
Adder
Logic Gates
CPU Circuit