Changeset 36 in XOpenSparcT1 for trunk/tools


Ignore:
Timestamp:
04/11/11 09:54:25 (14 years ago)
Author:
pntsvt00
Message:

modificati i file per la compilazione. boot.s linkato a 0xFFF0000020

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/compila

    r33 r36  
    1010 
    1111#assembla il boot.S 
    12 /opt/sparc64-sun-solaris2.8-toolchain/bin/sparc-sun-solaris2.8-as -64 boot.S -o boot.o 
     12echo "create boot.o" 
     13/opt/sparc64-sun-solaris2.8-toolchain/bin/sparc-sun-solaris2.8-as -xarch=v9 -64 boot.S -o boot.o 
    1314 
    1415## compila con ISA SPARC-V9 
     16echo "compile $1.c" 
    1517/opt/sparc64-sun-solaris2.8-toolchain/bin/sparc64-sun-solaris2.8-gcc -m64 -ffreestanding -nostdinc -Os -c $1.c 
    1618 
    1719## linka con ISA SPARC-V9 a 64 bits 
    1820echo "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 
    2025 
    2126 
    2227## fa il dump del file 
    23 /opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/objdump -d $1.bin >$1.dump 
     28/opt/sparc64-sun-solaris2.8-toolchain/sparc64-sun-solaris2.8/bin/objdump -zD $1.bin >$1.dump 
    2429 
    2530### crea memory.hex 
  • trunk/tools/dump2hex.php

    r30 r36  
    3131  while (!feof($fp)) { 
    3232    $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); 
    3737    $caratteri = strlen($opcode1); 
    3838    if($caratteri != 0){ 
     
    4444    } 
    4545    else{ 
    46         for($i=0; $i<1; $i++) fgets($fp); 
     46        echo "//".$line; 
     47        $line = fgets($fp); 
     48        echo "//".$line; 
    4749     }  
    4850    } 
Note: See TracChangeset for help on using the changeset viewer.