From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public X-Google-Thread: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,public From: robert_dewar@my-dejanews.com Subject: Re: Real-time dyn allctn (was: Ada vs C++ vs Java) Date: 1999/01/25 Message-ID: <78im07$86a$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 436772465 References: <369C1F31.AE5AF7EF@concentric.net> <369DDDC3.FDE09999@sea.ericsson.se> <369e309a.32671759@news.demon.co.uk> <77mu1h$n6m$1@galaxy.mchh.siemens.de> <77no7p$d65$1@nnrp1.dejanews.com> <78i6m3$505$4@plug.news.pipex.net> X-Http-Proxy: 1.0 x6.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Jan 25 20:59:58 1999 GMT Newsgroups: comp.lang.ada,comp.lang.c++,comp.vxworks,comp.lang.java X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-01-25T00:00:00+00:00 List-Id: In article <78i6m3$505$4@plug.news.pipex.net>, "Nick Roberts" wrote: > Michael's comment is not strictly correct. > > In the general case, the pattern of calls that will be made during the > execution of a program - even a 'hard' real-time one - will be unpredictable > (because it depends on unpredictable input values). The maximum possible > stack usage can be calculated. However, this figure will often be vastly > greater than any stack usage that will occur in practise (and thus be > useless). The occurance of recursion which is controlled by an input value > usually makes the aforementioned effect inevitable. Recursion in a hard real time program? You certainly work in a different environment from what I am used to. I am used to recursion being forbidden, as in OCCAM, precisely to allow static analysis of maximum storage use. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own