ARMv7-A Bare Bones: Difference between revisions

Jump to navigation Jump to search
m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
No edit summary
m (Bot: Replace deprecated source tag with syntaxhighlight)
Line 32:
_start.arm:
 
<sourcesyntaxhighlight lang="asm">
.global _start
_start:
Line 40:
b 1b
.size _start, . - _start
</syntaxhighlight>
</source>
 
start.c:
Line 55:
linker.ld:
 
<sourcesyntaxhighlight lang="c">
ENTRY(_start)
 
Line 75:
STACK_TOP = .;
}
</syntaxhighlight>
</source>
 
== Building and Running ==
 
<sourcesyntaxhighlight lang="bash">
arm-none-eabi-as -march=armv7-a -mcpu=cortex-a15 _start.arm -o _start.o
arm-none-eabi-gcc -ffreestanding -Wall -Wextra -Werror -c start.c -o start.o
arm-none-eabi-ld -T linker.ld _start.o start.o -o kernel.elf
qemu-system-arm -M vexpress-a15 -cpu cortex-a15 -kernel kernel.elf -nographic
</syntaxhighlight>
</source>
 
== See Also ==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu