Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail From: Walter Banks Newsgroups: comp.lang.forth Subject: Re: Metrics on stack usage Date: Tue, 16 Sep 2014 13:22:21 -0400 Organization: Aioe.org NNTP Server Lines: 45 Message-ID: <541871CD.59A7FB21@bytecraft.com> References: <541855C0.2558D27D@bytecraft.com> <2014Sep16.174458@mips.complang.tuwien.ac.at> NNTP-Posting-Host: YoO9jN9ybQgjv0MfopP4oQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Mailer: Mozilla 4.79 [en]C-CCK-MCD NSCPCD479 (Windows NT 5.0; U) X-Accept-Language: en X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.forth:33387 Anton Ertl wrote: > Walter Banks writes: > >I am working on a code generator for a stack processor. > >Who better to ask about real stack requirements than a forth group. > > > >The question is what is the expected stack requirements for a > >forth implementation? > > I am not sure what you are looking for, but you may find data of > interest to you in: > > @InProceedings{ertl95pldi, > author = "M. Anton Ertl", > title = "Stack Caching for Interpreters", > crossref = "sigplan95", > pages = "315--327", > url = "http://www.complang.tuwien.ac.at/papers/ertl95pldi.ps.gz", > abstract = "An interpreter can spend a significant part of its > execution time on arguments of virtual machine > instructions. This paper explores two methods to > reduce this overhead for virtual stack machines by > caching top-of-stack values in (real machine) > > > >Is there any benchmark code that test stack usage? > > is a set of > Forth applications used as benchmarks. If you want to have something > that has typical stack behaviour, you could do worse than to use these > benchmarks. > > - anton > -- > M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html > comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html > New standard: http://www.forth200x.org/forth200x.html > EuroForth 2014: http://www.euroforth.org/ef14/ Thanks. w..