mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Merge branch 'main' into cov
Some checks are pending
CI / test (ubuntu-latest) (push) Waiting to run
Some checks are pending
CI / test (ubuntu-latest) (push) Waiting to run
This commit is contained in:
commit
abc7a2c0ad
7 changed files with 24 additions and 6 deletions
|
|
@ -3,7 +3,11 @@ PROJECT:=$(shell basename ${PWD})
|
||||||
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S ${TOPDIR}/uvm32/uvm32.c
|
SRCS=${PROJECT}.c ${TOPDIR}/apps/common/crt0.S ${TOPDIR}/uvm32/uvm32.c
|
||||||
CFLAGS=-DUVM32_MEMORY_SIZE=8192 -DCUSTOM_STDLIB_H=\"uvm32_target.h\" -I../../uvm32
|
CFLAGS=-DUVM32_MEMORY_SIZE=8192 -DCUSTOM_STDLIB_H=\"uvm32_target.h\" -I../../uvm32
|
||||||
all:
|
all:
|
||||||
xxd -n mandel -i ${TOPDIR}/precompiled/mandel.bin | sed -e "s/unsigned char/const unsigned char/" > mandel.h
|
@echo "const unsigned char mandel[] = {" > mandel.h
|
||||||
|
@cat ${TOPDIR}/precompiled/mandel.bin | xxd -i >> mandel.h
|
||||||
|
@echo "};\nunsigned int mandel_len = " >> mandel.h
|
||||||
|
@wc -c ${TOPDIR}/precompiled/mandel.bin | awk '{print $$1}' >> mandel.h
|
||||||
|
@echo ";" >> mandel.h
|
||||||
make all_common
|
make all_common
|
||||||
test: test_common
|
test: test_common
|
||||||
clean: clean_common
|
clean: clean_common
|
||||||
|
|
|
||||||
|
|
@ -25,4 +25,6 @@ const unsigned char mandel[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x00
|
0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x00
|
||||||
};
|
};
|
||||||
unsigned int mandel_len = 300;
|
unsigned int mandel_len =
|
||||||
|
300
|
||||||
|
;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
TOPDIR=../..
|
TOPDIR=../..
|
||||||
|
|
||||||
all:
|
all:
|
||||||
xxd -n mandel -i ${TOPDIR}/precompiled/mandel.bin | sed -e "s/unsigned char/const unsigned char/" > mandel.h
|
@echo "const unsigned char mandel[] = {" > mandel.h
|
||||||
|
@cat ${TOPDIR}/precompiled/mandel.bin | xxd -i >> mandel.h
|
||||||
|
@echo "};\nunsigned int mandel_len = " >> mandel.h
|
||||||
|
@wc -c ${TOPDIR}/precompiled/mandel.bin | awk '{print $$1}' >> mandel.h
|
||||||
|
@echo ";" >> mandel.h
|
||||||
gcc -Wall -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=512 -O2 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host-mini ${TOPDIR}/uvm32/uvm32.c host-mini.c
|
gcc -Wall -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=512 -O2 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host-mini ${TOPDIR}/uvm32/uvm32.c host-mini.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
||||||
|
|
@ -25,4 +25,6 @@ const unsigned char mandel[] = {
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x00
|
0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x00
|
||||||
};
|
};
|
||||||
unsigned int mandel_len = 300;
|
unsigned int mandel_len =
|
||||||
|
300
|
||||||
|
;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
TOPDIR = ../..
|
TOPDIR = ../..
|
||||||
all:
|
all:
|
||||||
xxd -n fib -i ${TOPDIR}/precompiled/fib.bin | sed -e "s/unsigned char/const unsigned char/" > fib.h
|
@echo "const unsigned char fib[] = {" > fib.h
|
||||||
|
@cat ${TOPDIR}/precompiled/fib.bin | xxd -i >> fib.h
|
||||||
|
@echo "};\nunsigned int fib_len = " >> fib.h
|
||||||
|
@wc -c ${TOPDIR}/precompiled/fib.bin | awk '{print $$1}' >> fib.h
|
||||||
|
@echo ";" >> fib.h
|
||||||
gcc -Wall -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=16386 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host-parallel ${TOPDIR}/uvm32/uvm32.c host-parallel.c
|
gcc -Wall -DUVM32_ERROR_STRINGS -DUVM32_MEMORY_SIZE=16386 -I${TOPDIR}/uvm32 -I${TOPDIR}/common -o host-parallel ${TOPDIR}/uvm32/uvm32.c host-parallel.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
||||||
|
|
@ -40,4 +40,6 @@ const unsigned char fib[] = {
|
||||||
0x29, 0x20, 0x6c, 0x6f, 0x6f, 0x70, 0x00, 0x00, 0x66, 0x69, 0x62, 0x28,
|
0x29, 0x20, 0x6c, 0x6f, 0x6f, 0x70, 0x00, 0x00, 0x66, 0x69, 0x62, 0x28,
|
||||||
0x29, 0x20, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x00
|
0x29, 0x20, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65, 0x00
|
||||||
};
|
};
|
||||||
unsigned int fib_len = 480;
|
unsigned int fib_len =
|
||||||
|
480
|
||||||
|
;
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue