Skip to content
Snippets Groups Projects
Commit dbd961bd authored by aht2nguy's avatar aht2nguy
Browse files

all the .a .s. .o

parent d6e087b4
No related branches found
No related tags found
1 merge request!16Withtime
......@@ -46,11 +46,9 @@ task-descriptor.o: task-descriptor.s
bwio.o: bwio.s
$(AS) $(ASFLAGS) -o bwio.o bwio.s
clean:
-rm -f *.elf *.s *.o *.a *~ ../../lib/*.a
main.elf: main.o scheduler.o task-descriptor.o scheduler.o bwio.o
$(LD) $(LDFLAGS) -o $@ main.o scheduler.o task-descriptor.o scheduler.o bwio.o -lgcc #-lbwio
$(LD) $(LDFLAGS) -o $@ main.o scheduler.o task-descriptor.o scheduler.o bwio.o -lgcc
clean:
-rm -f *.elf *.s *.o *.map
\ No newline at end of file
-rm -f *.elf *.s *.o
No preview for this file type
.file "main.c"
.text
.align 2
.global kerent
.type kerent, %function
kerent:
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
mov ip, sp
stmfd sp!, {fp, ip, lr, pc}
sub fp, ip, #4
ldmfd sp, {fp, sp, pc}
.size kerent, .-kerent
.section .rodata
.align 2
.LC0:
......@@ -9,4 +21,110 @@
.align 2
.LC2:
.ascii "kerxit.c: Goodbye\012\015\000"
.text
.align 2
.global kerxit
.type kerxit, %function
kerxit:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
mov ip, sp
stmfd sp!, {sl, fp, ip, lr, pc}
sub fp, ip, #4
sub sp, sp, #8
ldr sl, .L6
.L5:
add sl, pc, sl
str r0, [fp, #-20]
str r1, [fp, #-24]
mov r0, #1
ldr r3, .L6+4
add r3, sl, r3
mov r1, r3
bl bwprintf(PLT)
mov r0, #1
ldr r3, .L6+8
add r3, sl, r3
mov r1, r3
bl bwprintf(PLT)
bl kerent(PLT)
mov r0, #1
ldr r3, .L6+12
add r3, sl, r3
mov r1, r3
bl bwprintf(PLT)
sub sp, fp, #16
ldmfd sp, {sl, fp, sp, pc}
.L7:
.align 2
.L6:
.word _GLOBAL_OFFSET_TABLE_-(.L5+8)
.word .LC0(GOTOFF)
.word .LC1(GOTOFF)
.word .LC2(GOTOFF)
.size kerxit, .-kerxit
.align 2
.global initialize
.type initialize, %function
initialize:
@ args = 0, pretend = 0, frame = 4
@ frame_needed = 1, uses_anonymous_args = 0
mov ip, sp
stmfd sp!, {fp, ip, lr, pc}
sub fp, ip, #4
sub sp, sp, #4
str r0, [fp, #-16]
ldmfd sp, {r3, fp, sp, pc}
.size initialize, .-initialize
.align 2
.global handle
.type handle, %function
handle:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
mov ip, sp
stmfd sp!, {fp, ip, lr, pc}
sub fp, ip, #4
sub sp, sp, #8
str r0, [fp, #-16]
str r1, [fp, #-20]
sub sp, fp, #12
ldmfd sp, {fp, sp, pc}
.size handle, .-handle
.align 2
.global main
.type main, %function
main:
@ args = 0, pretend = 0, frame = 20
@ frame_needed = 1, uses_anonymous_args = 0
mov ip, sp
stmfd sp!, {fp, ip, lr, pc}
sub fp, ip, #4
sub sp, sp, #20
str r0, [fp, #-28]
str r1, [fp, #-32]
ldr r0, [fp, #-24]
bl initialize(PLT)
mov r3, #0
str r3, [fp, #-16]
b .L13
.L14:
ldr r0, [fp, #-24]
ldr r1, [fp, #-20]
bl kerxit(PLT)
ldr r0, [fp, #-24]
ldr r1, [fp, #-20]
bl handle(PLT)
ldr r3, [fp, #-16]
add r3, r3, #1
str r3, [fp, #-16]
.L13:
ldr r3, [fp, #-16]
cmp r3, #3
ble .L14
mov r3, #0
mov r0, r3
sub sp, fp, #12
ldmfd sp, {fp, sp, pc}
.size main, .-main
.ident "GCC: (GNU) 4.0.2"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment