System call invoked when writing into a heap memory

后端 未结 3 813
北荒
北荒 2021-01-26 20:44

I know for malloc sbrk is the system call invoked ,Similarly What is the system cal invoked when i write to a malloed memory(heap memory)

int main

{

  /* 10 by         


        
3条回答
  •  生来不讨喜
    2021-01-26 21:20

    There are no system call involved in this case. Ask you compiler to generate assembly so that you can see that there is only some MOV instructions there. Or you can use a debugger to see the assembly

提交回复
热议问题