Karel Gardas
2011-Jun-26 09:16 UTC
[LLVMdev] Recommended GCC version for ARM/Linux platform for LLVM compilation.
Hello, I'm trying to find myself, but anyway, I'm curious what's the recommended GNU C++ version for LLVM compilation on ARM/Linux platform? I'm using various version of Ubuntu and so far the best compiler I found was 4.4.1 (Ubuntu 4.4.1-4ubuntu9)[1]. With this and with just -O1 as optimize option I've been able to get to 1 failing testcase. Other tested were 4.4.3 and 4.5.2 and with default -O3 I'm on about 100 (4.5.2 being the worst compiler here) of failing testcases (those compilers generates thumb by default) and with "-marm -O1" as optimize option I'm on 28 (4.5.2) and 18 (4.4.3) failing testcases. (-marm being better than -mthumb) (also here[2]) So I'm curious what's *the* recommended compiler on this platform which LLVM development is using? Thanks! Karel [1]: http://ghcarm.wordpress.com/2011/06/18/llvm-on-arm/ [2]: https://bugs.launchpad.net/ubuntu/+source/llvm/+bug/513735
Renato Golin
2011-Jun-27 10:46 UTC
[LLVMdev] Recommended GCC version for ARM/Linux platform for LLVM compilation.
On 26 June 2011 10:16, Karel Gardas <karel.gardas at centrum.cz> wrote:> So I'm curious what's *the* recommended compiler on this platform which > LLVM development is using?Hi Karel, I'm not sure what test cases you're talking about, but we use CodeSourcery's GCC and binutils (latests, not stable, because of new core support) and it works a treat. You can freely download it from their website. cheers, --renato
Karel Gardas
2011-Jun-27 11:10 UTC
[LLVMdev] Recommended GCC version for ARM/Linux platform for LLVM compilation.
On 06/27/11 12:46 PM, Renato Golin wrote:> On 26 June 2011 10:16, Karel Gardas<karel.gardas at centrum.cz> wrote: >> So I'm curious what's *the* recommended compiler on this platform which >> LLVM development is using? > > Hi Karel, > > I'm not sure what test cases you're talking about, but we use > CodeSourcery's GCC and binutils (latests, not stable, because of new > core support) and it works a treat. > > You can freely download it from their website. > > cheers, > --renato >Hi Renato, I'm not sure if this is not misunderstanding. As far as I know, CodeSourcery provides cross-compilers for ARM platforms and not native compilers. In my case I'm talking about native compiler running on Cortex-A9 (PandaBoard) and compiling LLVM directly on PandaBoard... The test cases I'm talking about are those which are directly packed in LLVM (test subdirectory) so you compile LLVM and then just invoke `make check' to test the build ... Thanks, Karel