24 lines
472 B
Bash
Executable file
24 lines
472 B
Bash
Executable file
#!/bin/bash -ex
|
|
|
|
F256=$(pwd)/../..
|
|
LLVM=${F256}/llvm-mos
|
|
SETTINGS=${LLVM}/mos-platform/f256k/lib/settings.ld
|
|
PATH=${LLVM}/bin:${PATH}
|
|
|
|
START=0x2100
|
|
|
|
echo "__f256_start = ${START};" > ${SETTINGS}
|
|
mos-f256k-clang -o kuptest -Os kuptest.c
|
|
mv -f kuptest kuptest.bin
|
|
|
|
${F256}/header/header \
|
|
kup \
|
|
kuptest.bin kuptest.kup \
|
|
1 ${START} \
|
|
"kuptest" \
|
|
" " \
|
|
"Testing KUP Applications"
|
|
|
|
#llvm-nm kuptest.elf
|
|
llvm-objdump -d --print-imm-hex kuptest.elf
|
|
hexdump -C kuptest.bin
|