search for: eabi

Displaying 20 results from an estimated 459 matches for "eabi".

Did you mean: abi
2014 Jun 19
2
[LLVMdev] [PATCH] triples for baremetal
Eric, Attached are patches for llvm and clang that implement this. I've made 'none' a component that must be added explicitly (i.e. don't turn arm-eabi into arm--none-eabi, but rather turn it into arm--unknown-eabi) to try to reduce surprises. It also keeps the normalization logic a bit simpler than it would otherwise have to be. SPIR triples were one place where I was uncertain... I'm not sure if they'd prefer to use 'none' or...
2016 Apr 18
2
[cfe-dev] [libunwind] __ELF__ macro for arm-none-eabi
...#39;t look like something ACLE specific (I can't find it in the ACLE doc). Sorry, I didn't mean it was ACLE, only that you guys were fiddling with macros. :) > This seems to be a generic macro. I think it would make sense to define it > if we know we're emitting ELF. Since the EABI only mentions ELF format, and we even have an ELF EABI, wouldn't it make sense to assume the format is ELF when we select EABI? I mean, we emit ELF on EABI anyway... GCC does the same, if that's any argument. :) cheers, --renato
2020 Sep 14
2
Cross compiling for ARMv7-m
Hi Peter, On Wed, 26 Feb 2020 at 18:37, Peter Smith via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hello Arslan, > > > I am guessing I can borrow libraries such as lc and lm from GCC > > arm-none-eabi*, but for clang_rt.builtins-arm.a (which I thought > > should've been built with LLVM build but I couldn't find that library > > in my build directory) I tried building it from LLVM source. > > You can take these from an arm-none-eabi toolchain. The GCC equivalent of clang...
2020 Feb 26
2
Cross compiling for ARMv7-m
Hi, I am trying to use LLVM/clang to build a binary for ARM Cortex M platforms. When I build my binary the linker fails to find these libraries. ./bin/clang++ -target arm-none-eabi -mcpu=cortex-m4 ./temp.cpp -L ./lib/ -L ./libexec/ -L ../build3_v7m/lib/ ld.lld: error: unable to find library -lunwind ld.lld: error: unable to find library -lc ld.lld: error: unable to find library -lm ld.lld: error: unable to find library -lclang_rt.builtins-arm.a I am guessing I can borrow lib...
2016 Apr 18
2
[cfe-dev] [libunwind] __ELF__ macro for arm-none-eabi
On 18 April 2016 at 16:33, Silviu Baranga <Silviu.Baranga at arm.com> wrote: > Doing a grep "eabi" * -R | grep darwin in llvm I found the test divmod-eabi.ll > which uses the triple armv7-apple-darwin-eabi. What format does that have? Certainly not ELF. :) But I didn't mean "has eabi on triple", but "is in none-eabi mode", which may have to check a few more Tri...
2014 Jun 17
4
[LLVMdev] triples for baremetal
...bare-metal? >> I'm not sure. It might be a good time to fork this thread, and start another >> about triples for bare-metal... > > Personally, I think we ought to add a 'None' entry to the OSType enum > specifically for baremetal, and then map triples like arm-none-eabi and > arm--eabi to it (but not arm-foobar-eabi, for example). > > Thoughts? > > Jon > >>> >>> --renato >>> >> > -- Jon Roelofs jonathan at codesourcery.com CodeSourcery / Mentor Embedded
2009 Jun 29
0
[LLVMdev] configuring cross compiler for Mac to Linux on ARM
...many different combinations of configure options. I have RTFM and RTFS but am still stumped. Any help would be greatly appreciated. Currently using: ../../combined/configure --prefix=/Users/neel/llvm/llvm-top/install/onmacosx/arm --build=i686-apple-darwin9 --host=i686-apple-darwin9 --target=arm-eabi --with-cpu=cortex-a8 --with-fpu=neon --with-abi=aapcs --with-float=hard --enable-llvm=/Users/neel/llvm/llvm-top/build-la/llvm --program-prefix=llvm- --enable-languages=c,c++ --disable-bootstrap --with-newlib --with-headers=yes --disable-multilib Questions: 1) What are the best configure options f...
2017 Oct 31
3
Cross compiling for Baremetal ARM without using GCC
Dear LLVM developers, Hello, I'm trying to find a way of cross-compiling my c code against Baremetal Cortex-M device (so target triple will be arm-none-eabi) only using LLVM/Clang, and not using anything from GNU (ld or libc). I'm doing this to know which one of LLVM/clang and GCC produces smaller flash image size because saving flash is a big deal in our projects. 1) When I just follow this - https://clang.llvm.org/docs/CrossCompilation.html usin...
2007 Feb 08
2
[LLVMdev] problem with function arguments in ARM EABI
I'm facing a problem with functions arguments. ARM EABI defines that 8-bytes arguments must be 8-bytes aligned. For example: void @f(i32 %a, i64 %b) ARM EABI: r0 <- %a r2,r3 <- %b Darwin: r0 <- %a r1,r2 <- %b void @g(i32 %a, i32 %b, i32 %c) ARM EABI or Darwin: r0 <- %a r1 <- %b r2 <- %c The problem is: I can't differ a i64...
2013 Dec 09
3
[LLVMdev] [cfe-dev] ARM EABI and modulo
On Mon, Dec 09, 2013 at 01:58:29PM +0000, Renato Golin wrote: > I can see the error, and it's just a bad selection of choices. I was > wrong in assuming that the "eabi" at the end would always force it: > > $ clang -target arm-elf-eabi -S mod.c -o - | grep mod > .file "mod.c" > bl __modsi3 > bl __umodsi3 I was discussing this with Tim on IRC and he raised the valid question of a pure mod operation being faster when emulated as it d...
2011 Jan 22
2
[LLVMdev] Target Triple Changes
...plans on how to support the ARM platform better, especially cross-compilation in Clang. All this discussion came as a spin-off of bug 8911 (http://llvm.org/bugs/show_bug.cgi?id=8957)... Today we have three major problems in cross-compiling to ARM with Clang: 1. Some ARM triples "arm*-none-eabi" don't get properly recognized, so Clang doesn't generate correct AAPCS (soft and hard) calls and don't pass the correct triple to LLC. 2. Some options in Clang are chosen by parsing the triple directly, because triples don't have all properties necessary to make such decisio...
2011 Jan 23
0
[LLVMdev] Target Triple Changes
Hi Renato, > 1. Some ARM triples "arm*-none-eabi" don't get properly recognized, > so Clang doesn't generate correct AAPCS (soft and hard) calls and > don't pass the correct triple to LLC. in order to have "eabi" be properly recognized by LLVM, it is enough to add "eabi" as a valid environment value. T...
2008 Oct 20
1
compile klibc problem (EABI version error)
...rking on marvell pxa310 (bought from Intel), and with the tools chain from marvell, I comple klibc as follows: klibc-1.5> ln -s /home/zjujoe/svn/mhlv_2.6/working/songlixin/20081007_kernel_tflashupdate/ linux klibc-1.5>cat 1.sh export KLIBCARCH=arm export CROSS_COMPILE=arm-iwmmxt-linux-gnueabi- klibc-1.5>. ./1.sh klibc-1.5>make KLIBCCC usr/klibc/__static_init.o KLIBCCC usr/klibc/vsnprintf.o ? LIST usr/klibc/syscalls/klib.list LIST usr/klibc/klib.list KLIBCAR usr/klibc/libc.a KLIBCLD usr/klibc/libc.so arm-iwmmxt-linux-gnueabi-ld: ERROR: Source object /opt...
2006 Nov 24
3
[LLVMdev] arm eabi
Attached is a port of the new ARM eabi from gcc 4.1 to the llvm-gcc branch. With this patch I am able to bootstrap the 4.0 branch using the new eabi. The llvm-gcc branch fails with ------------------------------------ internal compiler error: in prune_unused_types_update_strings, at dwarf2out.c:14372 -----------------------------------...
2007 Feb 09
0
[LLVMdev] problem with function arguments in ARM EABI
On Feb 8, 2007, at 10:46 AM, Lauro Ramos Venancio wrote: > I'm facing a problem with functions arguments. ARM EABI defines that > 8-bytes arguments must be 8-bytes aligned. For example: > > void @f(i32 %a, i64 %b) > > ARM EABI: > r0 <- %a > r2,r3 <- %b Ok. I suppose this makes it easier to use 64 bit store instructions. > > Darwin: > r0 <- %a > r1,r2 <- %b > &gt...
2016 Apr 16
2
[cfe-dev] [libunwind] __ELF__ macro for arm-none-eabi
...016 at 01:44, Zhao, Weiming via cfe-dev <cfe-dev at lists.llvm.org> wrote: > I'm building libunwind for ARM baremetal using clang. > I notice that __ELF__ is used in libunwind and the macro is only defined for > Linux target on ARM. > Should we also predefine that for arm-none-eabi target? Do you mean in Clang's ARMTargetInfo::getTargetDefines() ? I think so. I'm actually surprised it doesn't. Copying Bradley and Silviu, as they were working on ACLE pre-processor logic recently. cheers, --renato
2013 Dec 09
3
[LLVMdev] [cfe-dev] ARM EABI and modulo
...t; Hi Joerg, > > > At the moment, this will call __modsi3 and __umodsi3, even though those > > functions are not part of AAPCS. Should this be considered a lowering > > bug in the ARM target? > > LLVM actually supports both variants, depending on the target. The > __aeabi_* functions are part of the ARM "runtime ABI" and largely > independent of AAPCS. For whatever reason, Linux (& Darwin) ended up > not adopting it and using those GNU functions instead. > > If NetBSD uses the aeabi ones instead, it probably needs some extra > checks ad...
2019 Mar 11
2
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello Christian, I reran my script with a similar cmake command to yours. After the build finished the following command from the build directory gave me: find . -name \*builtins.a ./lib/clang/9.0.0/armv6m-none-eabi/lib/libclang_rt.builtins.a ./lib/clang/9.0.0/armv7m-none-eabi/lib/libclang_rt.builtins.a ./lib/clang/9.0.0/armv7em-none-eabi/lib/libclang_rt.builtins.a I hope you see something like this with your build. You can check that they are correct by disassembling them to see if they contain the instructio...
2010 Sep 27
2
[LLVMdev] Any plans to add LLVM support for ARM EH EABI ?
I am new to LLVM but have perused the code alongside using llvm-gcc and CLANG to build ARM EABI objects. Based on this superficial analysis it appears that LLVM currently does not support the ARM Exception Handling ABI (as defined under the EABI). Can anyone comment on whether plans are in place to remedy this? I did see the discussion regarding work on the MC for ARM. Will this work includ...
2014 Sep 06
2
[LLVMdev] [Compiler-RT] [ARM] Where __aeabi_[il]div0 builtins should be implemented?
> Looks as though whomever implemented the call to __aeabi_idiv0 wanted > to be conservative for non EABI targets. How could it prevent him from providing default implementation of __aeabi_idiv0() for EABI targets? > AFAIK, gnueabi targets recognize all EABI functions, so that should > work well. Not sure I understand you, nothing in compiler-r...