Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mimsy!cvl!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: "Cost of Portability" [really deterministic timing] Message-ID: <5822@brl-smoke.ARPA> Date: Fri, 1-May-87 15:30:36 EDT Article-I.D.: brl-smok.5822 Posted: Fri May 1 15:30:36 1987 Date-Received: Sun, 3-May-87 01:34:01 EDT References: <213@pyuxe.UUCP> <636@edge.UUCP> <1316@frog.UUCP> <658@edge.UUCP> <1287@ubc-cs.UUCP> <698@edge.UUCP> <16443@amdcad.AMD.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 Generally, if one can bound the worst-case response of the system, and if the maximum possible response time is still sufficient, then that's good enough. Also, most reasonable data acquisition systems are buffered, and if one can guarantee that the buffering is sufficient so that no overrun will occur, that also is good enough. This may involve guaranteed statistical behavior of a non-deterministic system. Note that an upper bound can be placed on time taken by the code generated for almost any C expression. One may have to make worst-case assumptions, such as a jmp being generated for every conditional, but most C compilers I've worked on have code generation tables that can be used to make such predictions.