Linux 配置中的Endian属性。文件
我想通过simplescalar运行基准测试,但当我想通过以下命令运行基准测试时:Linux 配置中的Endian属性。文件,linux,file,benchmarking,configuration-files,file-conversion,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 # load configuration from a file # -config # dum
./sim-profile anagram.pisa-big words < anagram.in > OUT
有人告诉我,我必须做到以下几点:
fatal: PISA binary `anagram.pisa-big' has wrong endian format
# 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>
/sim profile-confugdump config_new.cfg
/sim profile-confugdump config_new.cfg
fatal: PISA binary `anagram.pisa-big' has wrong endian format
# 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>
#从文件加载配置
#-配置
#将配置转储到文件
#-dumpconfig
#打印帮助消息
#-h假
#详细操作
#-v假
#启用调试消息
#-d错误
#在Dlite调试器中启动
#-我错了
#随机数生成器种子(计时器种子为0)
-种子1
#立即初始化并终止
#-q错误
#从恢复EIO跟踪执行
#-chkpt
#将模拟器输出重定向到文件(仅限非交互式)
#-重拨:sim卡
#将模拟程序输出重定向到文件
#-redir:prog
#模拟器调度优先级
-漂亮的0
#要执行的仪器的最大数量
-最大值:仪表0
#启用所有配置文件选项
-全是假的
#启用指令类评测
-假类
#启用指令分析
-iprof错误
#启用分支指令分析
-brprof false
#启用地址模式分析
-安普洛夫假
#启用加载/存储地址段评测
-塞格普洛夫错
#启用文本符号分析
-齐姆普洛夫错
#启用文本地址分析
-塔德尔福斯教授
#启用数据符号分析
-dsymprof false
#在符号分析期间包含编译器内部符号
-内部假
#针对文本地址的配置文件统计(mult使用ok)
#-pcstat
他们的建议并非如此。它说:
问题5:每当我尝试运行二进制文件时,总是会出现错误:“二进制文件的endian与主机的endian不匹配”,怎么了
你的二进制文件是错误的endian!您可能错误地配置了GCC、GAS或GLD,或者获取了错误的二进制版本。将编译器重新配置为相反的endian,或获得另一个二进制版本。要确定主机的endian,请运行SimpleScalar simulator目录中的“sysprobe-s”
文件扩展名pisa big
表明您使用的是big-endian格式。试着让它进入<代码>比萨一点(或者不管它叫什么)