연구실:System

[DreamHack워게임] cdecl 호출 규약

작성자 정보

  • za9uar 작성
  • 작성일

컨텐츠 정보

본문

// Name: cdecl.c

// Compile: gcc -fno-asynchronous-unwind-tables -nostdlib -masm=intel \

//          -fomit-frame-pointer -S cdecl.c -w -m32 -fno-pic -O0

 

void __attribute__((cdecl)) callee(int a1, int a2){

   // cdecl로 호출

}

 

void caller(){

   callee(1, 2);

}

 

------------------------------------------

관련자료

댓글 0
등록된 댓글이 없습니다.

최근글


  • 글이 없습니다.

새댓글