gpt4 book ai didi

linux - 配置中的 Endian 属性。文件

转载 作者:太空宇宙 更新时间:2023-11-04 03:57:45 25 4
gpt4 key购买 nike

我想通过 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

但问题是我找不到执行此操作的属性。打开此文件后,我有以下内容:

# 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>

最佳答案

他们的FAQ另有建议。它说:

Q5: Whenever I try to run binaries, I always get the error: "binary endian does not match host endian", what is wrong?

Your binaries are the wrong endian! Either you mis-configured GCC, GAS or GLD, or you grabbed the wrong binary release. Reconfigure the compilers to the opposite endian, or get the other binary release. To determine the endian of your host machine, run "sysprobe -s", located in the SimpleScalar simulator directory.

文件扩展名pisa-big表明您采用big-endian格式。尝试将其放入 pisa-little (或任何名称)中。

关于linux - 配置中的 Endian 属性。文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24103301/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com