-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathbuild.sh
executable file
·71 lines (62 loc) · 2.38 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# bez libm
set -e
mkdir -p build
cd build
#arm-none-eabi-gcc -g -Wall -Os -Werror -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -fno-exceptions -Wno-psabi -DLA104 -MD -DARDUINO -c \
#arm-none-eabi-g++ -Os -Werror -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wno-psabi -MD -D LA104 -D _ARM -D STM32F10X_HD -c \
arm-none-eabi-g++ -g -Os -Werror -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wno-psabi -D LA104 -D _ARM -D STM32F10X_HD -c \
../../../os_host/source/framework/Wnd.cpp \
../../../os_host/source/framework/Serialize.cpp \
../source/main.cpp \
../source/terminal-basic/HAL.c \
../source/terminal-basic/basic.c \
../source/terminal-basic/basic_dataparser.cpp \
../source/terminal-basic/basic_functionblock.cpp \
../source/terminal-basic/basic_internalfuncs.cpp \
../source/terminal-basic/basic_interpreterw.cpp \
../source/terminal-basic/basic_lexer.c \
../source/terminal-basic/basic_lexer_en.c \
../source/terminal-basic/basic_lexerw.cpp \
../source/terminal-basic/basic_math.cpp \
../source/terminal-basic/basic_parser.c \
../source/terminal-basic/basic_parser_value.cpp \
../source/terminal-basic/basic_parserw.cpp \
../source/terminal-basic/basic_program.cpp \
../source/terminal-basic/basic_value.c \
../source/terminal-basic/basic_gfx.cpp \
../source/terminal-basic/tools.c \
../source/terminal-basic/vt100.cpp \
-I../source/ \
-I../source/arduino \
-I../source/terminal-basic \
-I../../../os_library/include/
arm-none-eabi-gcc -g -fPIC -mcpu=cortex-m3 -mthumb -o output.elf -nostartfiles -T ../source/app.lds \
Wnd.o \
Serialize.o \
main.o \
HAL.o \
basic.o \
basic_dataparser.o \
basic_functionblock.o \
basic_internalfuncs.o \
basic_interpreterw.o \
basic_lexer.o \
basic_lexer_en.o \
basic_lexerw.o \
basic_math.o \
basic_parser.o \
basic_parser_value.o \
basic_parserw.o \
basic_program.o \
basic_value.o \
basic_gfx.o \
tools.o \
vt100.o \
-lbios_la104 -L../../../os_library/build -lm
arm-none-eabi-objdump -d -S output.elf > output.asm
nm --print-size --size-sort -gC output.elf | grep " B " > symbols_ram.txt
nm --print-size --size-sort -gC output.elf | grep " T " > symbols_rom.txt
nm --print-size --size-sort -gC output.elf > symbols_all.txt
find . -type f -name '*.o' -delete
find . -type f -name '*.d' -delete
../../../../tools/elfstrip/elfstrip output.elf 118basic.elf