<div dir="ltr">On 8 February 2013 14:28, David Given <span dir="ltr"><<a href="mailto:dg@cowlark.com" target="_blank">dg@cowlark.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Debian's clang packages are totally broken on armhf --- the compiler<br>
emits a confused warning about the platform being unrecognised, and then<br>
generates softfloat code --- so I was wondering about LLVM itself.</blockquote><div><br></div><div style>I'm using Ubuntu on Pandas and Chromebooks and LLVM itself behaves well, with the right set of command line options. Though, I remember that I also had hard-float issues when compiling to IR and then to object, but once I started using the full options that Clang provides by default, things started working.</div>
<div style><br></div><div style>Can you paste the result of a "clang -v -mcpu=CPU file.c" on your box? I want to see what are the arguments and the assembler/linker it's choosing to use. What CPU are we talking about?</div>
<div style><br></div><div style>If that works, it's possible that you'll need to set the flags Clang is doing by default on your front-end, too.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If it makes any difference, I'm not using the just-in-time part of the<br>
JIT, as it were. I have lazy compilation turned off and have a model<br>
where the entire script is compiled into IR code and then to machine<br>
code when my app starts.<br></blockquote><div><br></div><div style>This is very similar to what I did in my toy compiler, but I didn't use ARM at all. However, that should not have made any difference.</div><div><br>
</div><div style>cheers,</div><div style>--renato</div></div></div></div>