Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

C function call and return mechanism

hvjoshihvjoshi Member Posts: 4
I would like to know more about how C compiler calls and returns from a function.if any one has reference then please let me know.
Hardik Joshi

Comments

  • IDKIDK Member Posts: 1,784
    : I would like to know more about how C compiler calls and returns
    : from a function.if any one has reference then please let me know.
    : Hardik Joshi

    Search for C calling convention. Or look at the asm output of your compiler.
  • stars_625stars_625 Member Posts: 6
    : I would like to know more about how C compiler calls and returns
    : from a function.if any one has reference then please let me know.
    : Hardik Joshi

    push all the function var to stack, then save current PC to register, JMP

    you can learn it in your debugger while change it to C and ASS mixed mode
Sign In or Register to comment.