Commit d746c69a authored by protolambda's avatar protolambda

example: rename minimal program to hello

parent e2b59c2c
......@@ -2,11 +2,11 @@
bin:
mkdir bin
bin/minimal.elf: bin
cd minimal && GOOS=linux GOARCH=mips GOMIPS=softfloat go build -o ../bin/minimal.elf .
# verify output with: readelf -h bin/minimal.elf
bin/hello.elf: bin
cd hello && GOOS=linux GOARCH=mips GOMIPS=softfloat go build -o ../bin/hello.elf .
# verify output with: readelf -h bin/hello.elf
# result is mips32, big endian, R3000
bin/minimal.dump: bin/minimal.elf
bin/hello.dump: bin/hello.elf
# TODO: currently have the little-endian toolchain, but should use the big-endian one. The -EB compat flag works though.
mipsel-linux-gnu-objdump -D --disassembler-options=no-aliases --wide --source -m mips:3000 -EB bin/minimal.elf > bin/minimal.dump
mipsel-linux-gnu-objdump -D --disassembler-options=no-aliases --wide --source -m mips:3000 -EB bin/hello.elf > bin/hello.dump
......@@ -107,7 +107,7 @@ func TestEVM(t *testing.T) {
}
}
func TestMinimalEVM(t *testing.T) {
func TestHelloEVM(t *testing.T) {
contracts, err := LoadContracts()
require.NoError(t, err)
......@@ -120,7 +120,7 @@ func TestMinimalEVM(t *testing.T) {
}
sender := common.Address{0x13, 0x37}
elfProgram, err := elf.Open("../example/bin/minimal.elf")
elfProgram, err := elf.Open("../example/bin/hello.elf")
require.NoError(t, err, "open ELF file")
state, err := LoadELF(elfProgram)
......
......@@ -76,8 +76,8 @@ func TestState(t *testing.T) {
}
}
func TestMinimal(t *testing.T) {
elfProgram, err := elf.Open("../example/bin/minimal.elf")
func TestHello(t *testing.T) {
elfProgram, err := elf.Open("../example/bin/hello.elf")
require.NoError(t, err, "open ELF file")
state, err := LoadELF(elfProgram)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment