Do you inline assembly with the "module asm" instruction?<br><br><div class="gmail_quote">On Mon, May 16, 2011 at 9:34 PM, Charles Davis <span dir="ltr"><<a href="mailto:cdavis@mymail.mines.edu">cdavis@mymail.mines.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 5/16/11 10:30 PM, Hans Stimer wrote:<br>
> How do you do this in LLVM?<br>
><br>
> open:<br>
>     push    dword mode<br>
>     push    dword flags<br>
>     push    dword path<br>
>     mov eax, 5<br>
>     push    eax     ; Or any other dword<br>
>     int 80h<br>
>     add esp, byte 16<br>
</div></div>Same as in C: either with inline assembly, or by calling syscall(2).<br>
<br>
Chip<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>