Computer/Architecture

어셈블리어 용어

Detacher 2012. 7. 20. 09:31

assembly language

symbolic representatives of a computer's binary encoding(machine language)


assembler 

어셈블리어를 기계어로 번역

어셈블러가 assembly lang. soure file 읽고 object file 생성.


object file

contain machine instructions, information that helps combine several object files into a program


module

most programs consist of modules.

written, compiled, assembled independently.

contain references to subroutines and data defined in other modules and in libraries.


program library

supply prewritten routines.


routine

컴퓨터 프로그램에서 어떤일을 담당하는 하나의 정리된 일.

컴퓨터에서 원하는 작업을 시킬 수 있도록 올바른 순서로 배열된 1쌍의 명령계열.

프로그램은 크고 작은 여러 루틴들을 조합함으로써 성립.

메인루틴 - 전체의 개략적인 동작 절차

서브루틴 - 메인루틴에의해 호출되며, 서브루틴에 의해 세세한 실행. 메인루틴이 루틴라이브러리에 두고 마치 내장함수처럼 사용.

컴퓨터에서 원하는 작업을 시킬 수 있도록 올바른 순서로 배열된 1쌍의 명령계열


linker = link editor

combine a collection of object and library files into an executable file.

여러 오브젝 파일, 프로그램 라이브러리들(프로그램에 사용된 nonlocal routine들을 찾기위해)을 찾고, 하나의 실행파일로 조합.

그뒤 resolves references between routines in different files




assembly directive(어셈블리 지정어)

프로그램을 어케 해석하는지 말해줌. 기계 명령어는 생성안함. 항상 period 앞에 위치.

.data    indicate that they contain data

.globl main    declare that main is a global symbol that should be visible to other files

.text    indicate that succeeding lines contain instructions

.align n    mean that items on the succeeding lines should be aligned on a 2^n byte boundary

.asciiz    store null-terminated string in memory

.byte

http://www.helsinki.fi/atk/unix/dec_manuals/DOC_40D/APS31DTE/DOCU_011.HTM



label

name the next memory location

str:

main:

loop:

next:    오기전까지 연산작용하는 변수는 모두 이전 값


high level lang. = source lang. = target lang.

C or Pascal



참고 - MIPS Architecture and Assembly Language Overview

http://logos.cs.uic.edu/366/notes/mips%20quick%20tutorial.htm


'Computer > Architecture' 카테고리의 다른 글

C언어 -> MIPS instruction  (0) 2012.07.22
Arithmetic  (0) 2012.07.20
Imm, unsigned  (0) 2012.07.20
Program Counter -> Instruction Memory  (0) 2012.07.20
MIPS Instruction  (0) 2012.07.20