On Sun, Mar 15, 2009 at 4:20 AM, Sebastian Redl <span dir="ltr"><<a href="mailto:sebastian.redl@getdesigned.at">sebastian.redl@getdesigned.at</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Daniel Dunbar wrote:<br>
> I tried building Blender with clang today for fun. Went without a<br>
> hitch, although I had to use gcc for two files from ffmpeg with nasty<br>
> inline asm. Blender has about 600k lines of C code internally, and<br>
> another 600k from external libraries (like FFTW, ffmpeg, qhull, ...).<br>
</div>How do compile times compare?<br><div class="im"></div></blockquote><div><br>I didn't look; I'm close enough to having the new driver working that it isn't worth trying to compare timings with the Python driver. <br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
> Some results from comparing renders on the two binaries are here:<br>
> <a href="http://t1.minormatter.com/%7Eddunbar/blender/times.html" target="_blank">http://t1.minormatter.com/~ddunbar/blender/times.html</a><br>
</div>> <<a href="http://t1.minormatter.com/%7Eddunbar/blender/times.html" target="_blank">http://t1.minormatter.com/%7Eddunbar/blender/times.html</a>><br>
<div class="im">><br>
> A lot of rendering artifacts, but it is remotely possible this is a<br>
> Blender bug not a clang one. Several files show obvious flaws, on the<br>
> other hand.</div></blockquote><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">These artifacts look like floating point inaccuracies to me. </blockquote>
<div><br>The edge rendering ones, yes. The red cube verse gray cube is probably something else though. :)<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Could it be that Clang generates code that makes these worse?</blockquote><div><br>Maybe, although aside from constant folding, IRgen doesn't do too much in this area. If I was going to hunt these things I would probably do a build with llvm-gcc first to get a feel for frontend verse backend issue. My guess is that the edge artifacts will also show up with llvm-gcc.<br>
<br> - Daniel<br><br></div></div><br>