U E D R , A S I H C RSS

C/Assembly

이 νŽ˜μ΄μ§€λŠ” Cμ–Έμ–΄μ˜ ν•¨μˆ˜λ“€μ„ Assembly μ–΄λ‘œ λ²ˆμ—­ν•΄ λ‘λŠ” 곳이자,
Cμ–Έμ–΄μ˜ νŠΉμ§•λ“€μ„ μ‚΄νŽ΄λ³΄κ³ μž 함이닀.
(Cμ–Έμ–΄μ˜ νŠΉμ§•μ΄λΌκ³  ν•˜μ˜€μ§€λ§Œ, λ²ˆμ—­ν•˜λŠ” 컴파일러의 νŠΉμ§•μ΄λΌκ³  ν•΄μ•Ό μ˜³λ‹€.)

Spec
CPU : model name : AMD Duron(tm) Processor(800)
Linux Kernel : 2.6.12-1-386
Compiler : GNU/GCC (gcc version 4.0.1 (Debian 4.0.1-2))


Tip
GCC Option:
-O# (# == number) Optimization Level
-fomit-frame-pointer ν•¨μˆ˜λΌ call ν• λ•Œ fpλΌ μœ μ§€ν•˜λŠ” μ½”λ“œ(pushl %ebp, leave)λΌ μƒμ„±ν•˜μ§€ μ•Šλ„λ‘ ν•œλ‹€.
-E Preprocess only; do not compile, assemble or link
-S Compile only; do not assemble or link
-o Compile and assemble, but do not link
Mode:
asm(".code16\n");
asm(".code32\n");

gas:
as source.s -o source.o
ld:
ld source.o

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:22:47
Processing time 0.0202 sec