How do system calls work?

前端 未结 6 506
没有蜡笔的小新
没有蜡笔的小新 2021-01-29 20:02

I understand that a user can own a process and each process has an address space (which contains valid memory locations, this process can reference). I know that a process can c

6条回答
  •  北荒
    北荒 (楼主)
    2021-01-29 20:30

    You actually call the C runtime library. It's not the compiler who inserts TRAP, it's the C library who wraps TRAP into a library call. The rest of your understanding is correct.

提交回复
热议问题