Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • Now i tried , declaring a variable inside main , and wrote some statements which manipulate it and used printf , now i get a prologue , but no epilogue(no pop instruction) Commented Mar 22, 2013 at 5:49
  • I would hazard a guess that the main() function simply doesn't need one because its the end of the road. Try creating a function and do printf() there. Commented Mar 22, 2013 at 5:52
  • 1
    just cause you are using the stack doesn't mean you need a stack frame, these days you'll only need a frame if you are using VLA's or _alloca. also, it should be noted that the proper mnemonic in this case is PAUSE, REP is technically a prefix... Commented Mar 22, 2013 at 6:47
  • 4
    pause is rep nop, rep ret is something different. Commented Mar 22, 2013 at 10:06
  • 1
    @BarathBushan The stack adjustment is done by adding/subtracting from the stack pointer, not by moving data to/from memory (that is expensive, and to pop data just to discard it makes no sense). Commented Mar 25, 2013 at 2:23