File tree 1 file changed +13
-0
lines changed 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
set dotenv-load
2
2
3
+ build-example EXAMPLE OVERRIDE = " nightly" WORKSPACE = " take-api":
4
+ #!/ bin/ sh
5
+
6
+ set -eux
7
+
8
+ TARGET=target/ msp430 -none-elf/ release/ examples/ {{ EXAMPLE}}
9
+ cargo + {{ OVERRIDE}} rustc --manifest-path=./ {{ WORKSPACE}} / Cargo.toml --release -Zbuild-std=core --example={{ EXAMPLE}} -- --emit=obj=$TARGET.o,llvm-ir=$TARGET.ll,asm=$TARGET.s
10
+ msp430 -elf-objdump -Cd $TARGET > $TARGET.lst
11
+ msp430 -elf-readelf -a --wide $TARGET > $TARGET.sym
12
+ msp430 -elf-objdump -Cd $TARGET.o > $TARGET.o.lst
13
+ msp430 -elf-readelf -a --wide $TARGET.o > $TARGET.reloc
14
+ msp430 -elf-size $TARGET
15
+
3
16
# Compare sizes using rustup
4
17
compare-min OVERRIDE = " nightly":
5
18
cargo + {{ OVERRIDE}} rustc --manifest-path=take-api/ Cargo.toml --release --target=msp430 -none-elf -Z build-std=core --example min -- --emit=llvm-ir=compare/ min-nobare.ll,asm=compare/ min-nobare.asm
You can’t perform that action at this time.
0 commit comments