How do you do this in LLVM? open: push dword mode push dword flags push dword path mov eax, 5 push eax ; Or any other dword int 80h add esp, byte 16 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110516/a61fe83b/attachment.html>
On 5/16/11 10:30 PM, Hans Stimer wrote:> How do you do this in LLVM? > > open: > push dword mode > push dword flags > push dword path > mov eax, 5 > push eax ; Or any other dword > int 80h > add esp, byte 16Same as in C: either with inline assembly, or by calling syscall(2). Chip
Do you inline assembly with the "module asm" instruction? On Mon, May 16, 2011 at 9:34 PM, Charles Davis <cdavis at mymail.mines.edu>wrote:> On 5/16/11 10:30 PM, Hans Stimer wrote: > > How do you do this in LLVM? > > > > open: > > push dword mode > > push dword flags > > push dword path > > mov eax, 5 > > push eax ; Or any other dword > > int 80h > > add esp, byte 16 > Same as in C: either with inline assembly, or by calling syscall(2). > > Chip > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110516/76ee4713/attachment.html>
Maybe Matching Threads
- [LLVMdev] How are system calls made?
- [LLVMdev] How are system calls made?
- [LLVMdev] [patch] Add the returns_twice attribute
- [LLVMdev] Where does LLVM mangle characters from llvm-ir names while generating native code?
- [LLVMdev] [GSoC] "Microsoft Direct3D shader bytecode backend" proposal