Revision 30,
731 bytes
checked in by pntsvt00, 14 years ago
(diff) |
aggiornata tool-chain
|
Rev | Line | |
---|
[18] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | ##bisognerebbe fare un makefile ma per ora: |
---|
| 4 | |
---|
[30] | 5 | if [ ! $# == 1 ]; then |
---|
| 6 | echo "usage: compila nome_file (without extension)" |
---|
| 7 | exit 0 |
---|
| 8 | fi |
---|
| 9 | |
---|
| 10 | |
---|
[18] | 11 | ## compila con ISA SPARC-V9 |
---|
[30] | 12 | /opt/sparc64-sun-solaris2.8-toolchain/bin/sparc64-sun-solaris2.8-gcc -ffreestanding -nostdinc -Os -c $1.c |
---|
[18] | 13 | |
---|
[30] | 14 | ## linka con ISA SPARC-V9 a 64 bits |
---|
| 15 | echo "create $1.bin" |
---|
| 16 | /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/ld -melf64_sparc --script linker.lds $1.o -o $1.bin |
---|
| 17 | |
---|
| 18 | |
---|
[18] | 19 | ## fa il dump del file |
---|
[30] | 20 | /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/objdump -d $1.bin >$1.dump |
---|
[19] | 21 | |
---|
| 22 | ### crea memory.hex |
---|
[30] | 23 | echo "create memory_hello.hex for simulation" |
---|
| 24 | |
---|
| 25 | ../tools/dump2hex.php <$1.dump >../sim/memory_hello.hex |
---|
Note: See
TracBrowser
for help on using the repository browser.