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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 114c38,b2077f5b728fb9af X-Google-Attributes: gid114c38,public X-Google-Thread: 103376,b2077f5b728fb9af X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-11 05:10:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!cyclone.bc.net!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada,comp.os.vxworks Subject: Re: redirecting the standard output Date: 11 Apr 2001 08:04:07 -0400 Organization: NASA Goddard Space Flight Center Message-ID: References: <3ad31759$1@pull.gecm.com> <3ad40649$1@pull.gecm.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 986991543 19054 128.183.220.71 (11 Apr 2001 12:19:03 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 11 Apr 2001 12:19:03 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Xref: supernews.google.com comp.lang.ada:6748 comp.os.vxworks:6406 Date: 2001-04-11T12:19:03+00:00 List-Id: "Martin Dowie" writes: > > Backing up a bit, why do you want to do this? I can guess that you > > want to turn off some debugging output. It is _far_ better to define a > > Debug_IO package, with a Boolean or Integer debug enabled variable. > > Then have a style guide that says "Ada.Text_IO is _forbidden_ in > > delivered code; use Debug_IO if you need debug output". > > In our 'real' development code this is exactly what will be done (we have > a Project.Text_IO package which is the same for all projects, and we > slap on whatever the OS provides in the way of 'Simple_IO' via the body, > or 'null'ed for production) > > This is for testing and timing purposes. Hmm, another requirement I use is "test and time what you fly". It is easier to use Project.Text_IO from the start, than to change to it later. Also, packages should be testable without editing; use child packages to get access to private stuff. > So far, from what simple tests we've run each character seems to be > taking about 10ms to display via serial and 0.03ms via ethernet - > does this sound reasonable to everyone?.. :-) Hmm. Assuming 9600 baud serial link, 9 bits per character (with parity), that's about 1 ms per character. So you seem to have a significant tasking overhead in the serial implementation. -- -- Stephe