配置中的Endian属性。文件

时间:2014-06-08 05:31:22

标签: linux file benchmarking configuration-files file-conversion

我想通过simplescalar运行基准测试,但是当我想通过此命令运行它时:

./sim-profile anagram.pisa-big words < anagram.in > OUT

它给了我以下内容:

fatal: PISA binary `anagram.pisa-big'  has wrong endian format

有人告诉我,我必须做以下事情:

  1. 运行./sim-profile -confugdump config_new.cfg
  2. 然后写./sim-profile -confugdump config_new.cfg
  3. 更改属性并将endian属性更改为big-endian
  4. 但问题是我无法找到执行此操作的属性。打开此文件后,我有以下内容:

    # load configuration from a file
    # -config               
    
    # dump configuration to a file
    # -dumpconfig           
    
    # print help message
    # -h                          false 
    
    # verbose operation
    # -v                          false 
    
    # enable debug message
    # -d                          false 
    
    # start in Dlite debugger
    # -i                          false 
    
    # random number generator seed (0 for timer seed)
    -seed                             1 
    
    # initialize and terminate immediately
    # -q                          false 
    
    # restore EIO trace execution from <fname>
    # -chkpt                     <null> 
    
    # redirect simulator output to file (non-interactive only)
    # -redir:sim                 <null> 
    
    # redirect simulated program output to file
    # -redir:prog                <null> 
    
    # simulator scheduling priority
    -nice                             0 
    
    # maximum number of inst's to execute
    -max:inst                         0 
    
    # enable all profile options
    -all                          false 
    
    # enable instruction class profiling
    -iclass                       false 
    
    # enable instruction profiling
    -iprof                        false 
    
    # enable branch instruction profiling
    -brprof                       false 
    
    # enable address mode profiling
    -amprof                       false 
    
    # enable load/store address segment profiling
    -segprof                      false 
    
    # enable text symbol profiling
    -tsymprof                     false 
    
    # enable text address profiling
    -taddrprof                    false 
    
    # enable data symbol profiling
    -dsymprof                     false 
    
    # include compiler-internal symbols during symbol profiling
    -internal                     false 
    
    # profile stat(s) against text addr's (mult uses ok)
    # -pcstat                    <null> 
    

1 个答案:

答案 0 :(得分:0)

他们的FAQ暗示不然。它说:

  

问题5:每当我尝试运行二进制文件时,我总是会收到错误:&#34;二进制字节序与主机字符串不匹配&#34;,出了什么问题?

     

你的二进制文件是错误的结尾!您错误配置了GCC,GAS或GLD,或者您抓错了二进制版本。将编译器重新配置为相反的endian,或获取其他二进制版本。要确定主机的字节序,请运行位于SimpleScalar模拟器目录中的&#34; sysprobe -s&#34;。

文件扩展名pisa-big表示您使用的是big-endian格式。尝试将其转换为pisa-little(或其他任何名称)。