Displaying 2 results from an estimated 2 matches for "subscription3130".
2012 Jul 06
0
[LLVMdev] how to change a compiler from a host to a target in Clang's assembler and linker
...s64-linux-gnu-as
If you use integrated assembler (turned on by -integrated-as option)
you can skip mips-linux-gnu-as links creation.
Exact command line options depends on used toolchain. Examples below
work for Mentor Graphics Toolchain version 2011.09-75
(https://sourcery.mentor.com/GNUToolchain/subscription3130?lite=MIPS).
* Little-endian 32-bit
$ clang -target mipsel-linux-gnu main.c -static \
--sysroot $MIPS/mips-linux-gnu/libc/el \
-I$MIPS/mips-linux-gnu/libc/usr/include \
-B$MIPS/lib/gcc/mips-linux-gnu/4.5.2/el \
-L$MIPS/lib/gcc/mips-linux-gnu/4.5.2/el \
-integrated-as
* Big-endi...
2012 Jul 04
6
[LLVMdev] how to change a compiler from a host to a target in Clang's assembler and linker
Hi,
I would like to ask you how to use Clang in cross-compile environment. My environment is as follows:
------
HOST: 32-bit Fedora 16 with Intel Core i7
gcc/g++ compiler available
TARGET: 32-bit mips-typed linux
gnu gcc/g++ for 32-bit mips-typed linux available
------
As Clang's option is "-c" in use, my programs are compiled and linked under a host