Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19608
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | markspace <-@.> |
| Newsgroups | comp.lang.java.programmer, comp.programming |
| Subject | Re: Creating a new stack from an exisiting one. |
| Date | Sat, 03 Nov 2012 11:20:01 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 43 |
| Message-ID | <k73n8j$lon$1@dont-email.me> (permalink) |
| References | <f6d6cbfd-8152-4d92-92b5-89a18ac989a5@tr7g2000pbc.googlegroups.com> <0.73472d82415d5353822e.20121103155132GMT.87mwyyvg57.fsf@bsb.me.uk> <b227ba50-ccbc-4da0-9f6a-31bb809f329d@ah9g2000pbd.googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sat, 3 Nov 2012 18:20:03 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="22295"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188eVDeSFvDTF8LcmWsVm489BChTgJH3BI=" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 |
| In-Reply-To | <b227ba50-ccbc-4da0-9f6a-31bb809f329d@ah9g2000pbd.googlegroups.com> |
| Cancel-Lock | sha1:/dima34zz/qFvEzoLkJqJ6ogjps= |
| Xref | csiph.com comp.lang.java.programmer:19608 comp.programming:2451 |
Cross-posted to 2 groups.
Show key headers only | View raw
On 11/3/2012 9:22 AM, Chad wrote: > > That what I thought. However, I don't think so. Let me elaborate. This > is part of a much much larger software project. The part is question > is the RunTimeStack module. In this module, we have one stack which is > called runStack. This is an ArrayList that is supposed to hold the > data pushed onto the stack. In other words, after I push the numbers > onto the stack, it would look something like.. > > [1, 4, 10, 20] > > There is another stack, of type Stack, that is called framePointers. > This holds the current offset. So if I have something like f(3) in the > source code, the corresponding runTimeStack is supposed to go > something like Well, most of us remember our lessons from our coursework, so there's not much chance we'll do your homework for you. Most real machine code that I've seen only uses one stack for both local variables and the frame pointers. I don't know where you get two stacks from. Since your specification sounds hookey to me, I'd ask you to ask your instructor what is really going on. Without understanding the exact specification it's impossible to say what is really going on here. > > LIT 3 //private machine code > [1, 4, 10, 20, 3] > > ARGS 1 //ditto > [1, 4, 10, 20] [3] > > CALL F<<20>> > [1, 4, 10, 20] [3] > > > > I don't see how to create the new "stack" when I'm only given one > stack to hold the data and another to hold the offsets. >
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Creating a new stack from an exisiting one. Chad <cdalten@gmail.com> - 2012-11-03 07:45 -0700
Re: Creating a new stack from an exisiting one. Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-11-03 15:51 +0000
Re: Creating a new stack from an exisiting one. Chad <cdalten@gmail.com> - 2012-11-03 09:22 -0700
Re: Creating a new stack from an exisiting one. markspace <-@.> - 2012-11-03 11:20 -0700
Re: Creating a new stack from an exisiting one. "BartC" <bc@freeuk.com> - 2012-11-03 18:58 +0000
Re: Creating a new stack from an exisiting one. "Pascal J. Bourguignon" <pjb@informatimago.com> - 2012-11-04 00:49 +0100
Re: Creating a new stack from an exisiting one. Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-11-04 00:44 +0000
Re: Creating a new stack from an exisiting one. "Pascal J. Bourguignon" <pjb@informatimago.com> - 2012-11-04 13:14 +0100
Re: Creating a new stack from an exisiting one. Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-11-04 12:48 +0000
Re: Creating a new stack from an exisiting one. Thomas Richter <thor@math.tu-berlin.de> - 2012-11-04 14:14 +0100
Re: Creating a new stack from an exisiting one. Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-11-04 15:38 +0000
Re: Creating a new stack from an exisiting one. "Pascal J. Bourguignon" <pjb@informatimago.com> - 2012-11-04 14:41 +0100
Re: Creating a new stack from an exisiting one. "BartC" <bc@freeuk.com> - 2012-11-04 14:11 +0000
Re: Creating a new stack from an exisiting one. "Pascal J. Bourguignon" <pjb@informatimago.com> - 2012-11-04 16:00 +0100
Re: Creating a new stack from an exisiting one. markspace <-@.> - 2012-11-04 11:02 -0800
Re: Creating a new stack from an exisiting one. Martin Gregorie <martin@address-in-sig.invalid> - 2012-11-04 19:56 +0000
Re: Creating a new stack from an exisiting one. Jeff Higgins <jeff@invalid.invalid> - 2012-11-03 16:46 -0400
Re: Creating a new stack from an exisiting one. Jeff Higgins <jeff@invalid.invalid> - 2012-11-04 08:22 -0500
Re: Creating a new stack from an exisiting one. Jeff Higgins <jeff@invalid.invalid> - 2012-11-04 11:30 -0500
Re: Creating a new stack from an exisiting one. Jeff Higgins <jeff@invalid.invalid> - 2012-11-04 19:40 -0500
Re: Creating a new stack from an exisiting one. Lew <lewbloch@gmail.com> - 2012-11-03 16:02 -0700
csiph-web