Notice
Recent Posts
Recent Comments
Link
취미생활
Linux ARM Assembler 컴파일 방법 본문
예시 코드
.text
.global _start
_start:
mov r0, #1
ldr r1, =message
ldr r2, =len
mov r7, #4
swi 0
mov r7, #1
swi 0
.data
message:
.asciz "hello world\n"
len = .-message
* 위 예시 코드는 ARM 리눅스 환경에서만 동작합니다.
빌드 명령어
$as 파일이름 -o 출력파일이름
$ld 출력파일이름 -o 실행파일이름
$./실행파일이름

참고사이트 : http://kerseykyle.com/articles/ARM-assembly-hello-world
ARM assembly hello world tutorial
How to write a simple hello world program in ARM assembly language
kerseykyle.com