|
|
|
@ -6,8 +6,8 @@ build:
|
|
|
|
|
cargo build --release
|
|
|
|
|
|
|
|
|
|
extract: build
|
|
|
|
|
riscv32-elf-objcopy -O binary --only-section=.text "target/riscv32i-unknown-none-elf/release/${NAME}" ~/text.bin
|
|
|
|
|
riscv32-elf-objcopy -O binary --only-section=.rodata "target/riscv32i-unknown-none-elf/release/${NAME}" ~/rodata.bin
|
|
|
|
|
riscv32-elf-objcopy -O binary --only-section=.text "target/riscv32i-unknown-none-elf/release/${NAME}" /tmp/text.bin
|
|
|
|
|
riscv32-elf-objcopy -O binary --only-section=.rodata "target/riscv32i-unknown-none-elf/release/${NAME}" /tmp/rodata.bin
|
|
|
|
|
|
|
|
|
|
size: extract
|
|
|
|
|
cargo size --release -- -A
|
|
|
|
|