Stack & Unconditional Statements

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sureshk
    New Member
    • Oct 2006
    • 7

    Stack & Unconditional Statements

    What will happen to the stack in 'C' while an unconditional statement occurs.
  • RS24
    New Member
    • Oct 2006
    • 9

    #2
    Originally posted by sureshk
    What will happen to the stack in 'C' while an unconditional statement occurs.

    Be specific with the question. What kind of unconditional statements ?

    Comment

    • D_C
      Contributor
      • Jun 2006
      • 293

      #3
      I assume an unconditional branch statement is intended. At that point, registers are pushed onto the stack. The program counter must be pushed. I suppose it's left up to implementation for what other registers to push on the stack.

      Comment

      Working...