Stream: cranelift

Topic: Is there a way to emit a `syscall` instruction?


view this post on Zulip Ivan Chinenov (Mar 27 2024 at 18:59):

Or is my only option for properly exiting from _start to link against libc and using it's exit() wrapper?

view this post on Zulip Chris Fallin (Mar 27 2024 at 19:08):

No, we don't have direct generation of syscall instructions, so you'll need to either call out to libc, or write your own (e.g. you could do a crt0 wrapper for _start that does a normal function call to your Cranelift-compiled code, then does the exit syscall itself)


Last updated: Nov 22 2024 at 16:03 UTC