<div dir="ltr">(I'm unfamiliar with MIPS, simply reviewing the ARM code)<div><br></div><div>* It would be better to put the ARM code with the NetBSD ARM code, not separate.</div><div>* Some platforms apparently fail doing this properly, and syscall returns an error. I don't know if Android guarantees that this works, but it may be worth checking the return value and aborting on syscall failure.</div>
<div>* JITs I've seen all use inline asm with a straight call to svc (with proper ARM/Thumb headache). There seems to be mysticism around this that I've never quite grasped, since the compiler should just emit the svc. See: <a href="http://v8.googlecode.com/svn/branches/bleeding_edge/src/arm/cpu-arm.cc">http://v8.googlecode.com/svn/branches/bleeding_edge/src/arm/cpu-arm.cc</a></div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 8:36 AM, Narayan Kamath <span dir="ltr"><<a href="mailto:narayan@google.com" target="_blank">narayan@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Note that both arm32 and mips flavours of this code generate</div><div>a syscall. </div><div><br></div>
<div><br></div>_________________<br>Save Rainforests
</div>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>