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
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
Do you inline assembly with the “module asm” instruction?
Do you inline assembly with the "module asm" instruction?
No, with inline asm: http://llvm.org/docs/LangRef.html#inlineasm
Ciao, Duncan.