<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>Hi,</p>
<p><br />I didn't do any serious benchmarking but so far I never found a case where LLVM does better than IAR on CortexM0, but I saw a lot of cases where IAR output is better than LLVM... </p>
<p>That said I did not use -Os or -Oz, I just used -O3.</p>
<p>A recurrent situation is that LLVM push/pop one or two extra registers compared to IAR, I guess it does so in order to comply with a standard ABI or something but in the world of deeply embedded system, we don't care of such things 99.99% of the time...</p>
<p>If you want to see some good code output, take a look at IAR, there is a free version limited in code size online.</p>
<p>Cheers,</p>
<p>Sebastien</p>
<div> </div>
</body></html>