Pushes and Pops to/from stack?

From: Kenneth Lantrip (nunya_at_bidny.ok)
Date: 07/30/04


Date: Fri, 30 Jul 2004 10:24:19 -0400

In Ansi-C C99 or Standard C or in GCC...

Is there a way to push a value onto the stack and then later retrieve it
within the same function?

void foo(void) {
    .
    .
    push my value here;
    .
    .
    pop my value here;
    .
    .
}

Or is this only machine dependant and/or compiler dependant?



Relevant Pages

  • Re: Pushes and Pops to/from stack?
    ... > Is there a way to push a value onto the stack and then later retrieve it ... Enterprise Technology Solutions, TD Bank Financial Group ...
    (comp.lang.c)
  • Re: Pushes and Pops to/from stack?
    ... >Is there a way to push a value onto the stack and then later retrieve it ... >void foo{ ...
    (comp.lang.c)
  • Re: Is it wise to push all-in early in a tournament?
    ... The best times to make a push play ... But why call when you can push and take down a nice pot when your opponent ... But remember that if this "big bet" is a significant portion of your stack, ... I consider it my goal in any tournament to do the latter as much as ...
    (rec.gambling.poker)
  • Re: Is it wise to push all-in early in a tournament?
    ... whether or not the rest of the table is splashing chips around. ... I may push more than I want to and you may be more conservative than ... Do I want to play this opponent after the flop? ... push at anytime and I may not want to risk my stack on a suckout when I ...
    (rec.gambling.poker)
  • Virtual machine: assembly instructions
    ... push; Push the address of the first variable onto the stack ... itof: convert integer to float ... If top+1 of int stack is less than top; push true else push false ...
    (comp.programming)