5 CROSS
=/opt
/crosstool
/gcc-3.4
.5-glibc-2.3
.6/arm-softfloat-linux-gnu
/bin
/arm-softfloat-linux-gnu-
6 #CROSS=/opt/cross/bin/arm-linux-
8 #GCC="$CROSS"gcc -msoft-float
10 OBJCOPY
="$CROSS"objcopy
12 OBJDUMP
="$CROSS"objdump
14 LDFLAGS
="-T elf32-littlearm.lds -Ttext 0"
16 $GCC -DREDUCE_CODE_SIZE -g -Os -v -mcpu=arm920t asm_isr.S
-c -Iinclude
17 $GCC -DREDUCE_CODE_SIZE -g -Os -v -mcpu=arm920t cstartup_ram.S
-c -Iinclude
18 $GCC -DREDUCE_CODE_SIZE -g -Os -v -mcpu=arm920t jump.S
-c -Iinclude
19 $GCC -DREDUCE_CODE_SIZE -g -Os -v -mcpu=arm920t at45.cpp
-c -Iinclude -Os
20 $GCC -DREDUCE_CODE_SIZE -g -Os -v -mcpu=arm920t com.cpp
-c -Iinclude -Os
21 $GCC -DREDUCE_CODE_SIZE -g -Os -v -mcpu=arm920t dataflash.cpp
-c -Iinclude -Os
22 $GCC -DREDUCE_CODE_SIZE -g -Os -v -mcpu=arm920t init.cpp
-c -Iinclude -Os
23 $GCC -DREDUCE_CODE_SIZE -g -Os -v -mcpu=arm920t main.cpp
-c -Iinclude -Os
24 $GCC -DREDUCE_CODE_SIZE -g -Os -v -c -mcpu=arm920t stdio.cpp
-Os
25 $GCC -DREDUCE_CODE_SIZE -g -Os -v -c -mcpu=arm920t _udivsi3.S
26 $GCC -DREDUCE_CODE_SIZE -g -Os -v -c -mcpu=arm920t _umodsi3.S
27 $GCC -DREDUCE_CODE_SIZE -g -Os -v -c -mcpu=arm920t div0.c
-Os
29 $LD -g cstartup_ram.o asm_isr.o jump.o at45.o com.o dataflash.o init.o main.o stdio.o _udivsi3.o _umodsi3.o div0.o
-o $OUTPUT.out
$LDFLAGS -n
31 $OBJCOPY $OUTPUT.out
-O binary
$OUTPUT.bin
33 $OBJDUMP -h -s $OUTPUT.out
> $OUTPUT.lss