I want to compile MiBench by clang, and the target-ISA is armv4. The code generated using llvm-2.9, clang-2.9, and arm-linux-gcc (gcc version 2.95.2), simulator is sim-panalyzer 2.0.3 .
^^^^^^^^^^^^^^^
What the problem you have? Have you tried svn instead? I think
it's better to use svn head and report any problem you have, since
people *only* care about the latest version. Anyway, try commands
below:
These errors are from the assembler, not LLVM. Specifically, your binutils is too old. Given that it doesn’t even recognize the “.syntax” directive, they’re very much too old. You need to upgrade.
-Jim
These errors are from the assembler, not LLVM. Specifically, your binutils is
too old. Given that it doesn't even recognize the ".syntax" directive, they're
*very* much too old. You need to upgrade.
-Jim
She said in her previous mail,
P.S. Because I got error when I use arm-linux-gcc (gcc version 3.X or 4.X),
I use officially recommended version 2.95,2.
I don't know what's her problem while using newer toolchain.
奕梅,you should use latest toolchain if possible, and post your problem here
to see if it comes from LLVM/Clang or other place. Also, where do you read that
version is recommended?
I use arm-linux-gcc 2.95.2, because the code generated by version 3.X and 4.X can not run on SimpleScalar.
So I use the arm-linux-gcc 2.95.2 only, the version is recommended by SimpleScalar.
The code generated by arm-linux-gcc 2.95.2 can run on SimpleScalar.
Now I want to use llvm/clang to generate ARM assembly code and arm-linux-gcc 2.95.2 to be assembler.
Unfortunately, I got some error messages below :
The version recommended by SimpleScalar :
gcc 2.95.2
binutils 2.10
glibc 2.1.3
These versions are ancient: at least 12 years old. Surely they do no
support the unified ARM assembler syntax. So, you're out of luck here
- you need to use much newer versions of tools.
The reason for using SimpleScalar is that the project, Sim-panalyzer, based on SimpleScalar can estimate power consumption.
If anybody know the other simulators that can estimate power consumption, please contact to me ! Thanks a lot.