We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I would like to crete assembly and binaries from c code, targeting arm v7 architecture.
I would like to use LLVM to do that. Is there any specific manual/documentation/website?
Thank you
Thank you for the answer. Have you tried this? I am trying to do what it says but I get what is shown below. What is the problem? Thanks
--------------------------------------------------------------------------------------------------------------------------------------
-- The CXX compiler identification is Clang 3.5.0
-- Check for working CXX compiler using: Ninja
-- Check for working CXX compiler using: Ninja -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "/usr/bin/clang++" is not able to compile a simple test
program.
It fails with the following output:
Change Dir: /home/user/Desktop/llvm/llvm/new_build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/ninja cmTryCompileExec1541562247
[1/2] Building CXX object
CMakeFiles/cmTryCompileExec1541562247.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTryCompileExec1541562247
FAILED: : && /usr/bin/clang++ -target armv7a-linux-gnueabihf
-mcpu=cortex-a9
-I/usr/arm-linux-gnueabihf/include/c++/4.7.2/arm-linux-gnueabihf/
-I/usr/arm-linux-gnueabihf/include/ -mfloat-abi=hard -ccc-gcc-name
arm-linux-gnueabihf-gcc
CMakeFiles/cmTryCompileExec1541562247.dir/testCXXCompiler.cxx.o -o
cmTryCompileExec1541562247 -rdynamic && :
/usr/bin/ld: unrecognised emulation mode: armelf_linux_eabi
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om
elf_k1om i386pep i386pe
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:19 (project)
-- Configuring incomplete, errors occurred!