> It can't be returned from, the exit system call must be issued before execution terminates.
So what happens if exit isn't called?
So what happens if exit isn't called?
2. If you add nothing, the CPU will continue to execute the bytes that follow.
In both cases it is quite certain you end with a segmentation fault.(Or in case 2., an illegal instruction)
I've seen code with a hlt instruction after main and the exit system call. Not sure what their intentions are, it should be unreachable.