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: 103376,9c86eb13dd395066 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: CRC in Ada? Date: 1997/03/06 Message-ID: #1/1 X-Deja-AN: 223689425 References: <1997Mar2.220652@nova.wright.edu> <331d3cf9.1190126@news.logica.co.uk> <1997Mar5.083233.1@eisner> <1997Mar5.131846.1@eisner> <5fm7c3$se5$1@A-abe.resnet.ucsb.edu> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-03-06T00:00:00+00:00 List-Id: Graham says <> Uh? GNAT uses exactly C stream semantics to read, it will be buffered or unbuffered depending on whether the C streams are buffered or unbuffered by default. As with C, setvbuf (I think I remember the name right) can e used to control buffering. More significant is that the Text_IO semantics has a lot of junk, like column, line and page counting, which can introduce fundamental unwelcome overhead. If this is a problem, then of course it is perfectly easy to use the C routines directly from Ada, or even GNAT.IO if you are using GNAT. I recommend that people read the section on implementation of Text_IO in the GNAT manual, which gives the EXACT correspondence between Ada Text_IO and C stream IO.