Changeset 36 in XOpenSparcT1 for trunk/tools
- Timestamp:
- 04/11/11 09:54:25 (14 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/compila
r33 r36 10 10 11 11 #assembla il boot.S 12 /opt/sparc64-sun-solaris2.8-toolchain/bin/sparc-sun-solaris2.8-as -64 boot.S -o boot.o 12 echo "create boot.o" 13 /opt/sparc64-sun-solaris2.8-toolchain/bin/sparc-sun-solaris2.8-as -xarch=v9 -64 boot.S -o boot.o 13 14 14 15 ## compila con ISA SPARC-V9 16 echo "compile $1.c" 15 17 /opt/sparc64-sun-solaris2.8-toolchain/bin/sparc64-sun-solaris2.8-gcc -m64 -ffreestanding -nostdinc -Os -c $1.c 16 18 17 19 ## linka con ISA SPARC-V9 a 64 bits 18 20 echo "create $1.bin" 19 /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/ld -melf64_sparc --script linker.lds boot.o $1.o -o $1.bin 21 #/opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/ld -melf64_sparc --script linker.lds boot.o $1.o -o $1.bin 22 23 ### da codice S1 24 /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/ld -melf64_sparc --script=linker.map -EB -o $1.bin boot.o $1.o 20 25 21 26 22 27 ## fa il dump del file 23 /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/objdump - d$1.bin >$1.dump28 /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/objdump -zD $1.bin >$1.dump 24 29 25 30 ### crea memory.hex -
trunk/tools/dump2hex.php
r30 r36 31 31 while (!feof($fp)) { 32 32 $line = fgets($fp); 33 $opcode1 = substr($line, 6, 2);34 $opcode2 = substr($line, 9, 2);35 $opcode3 = substr($line, 12, 2);36 $opcode4 = substr($line, 15, 2);33 $opcode1 = substr($line, 14, 2); 34 $opcode2 = substr($line, 17, 2); 35 $opcode3 = substr($line, 20, 2); 36 $opcode4 = substr($line, 23, 2); 37 37 $caratteri = strlen($opcode1); 38 38 if($caratteri != 0){ … … 44 44 } 45 45 else{ 46 for($i=0; $i<1; $i++) fgets($fp); 46 echo "//".$line; 47 $line = fgets($fp); 48 echo "//".$line; 47 49 } 48 50 }
Note: See TracChangeset
for help on using the changeset viewer.