phi@insearch.cam.org (phi) (08/02/90)
TEST REPORT ON EARL CHEW's stdio package. Test envivronment: Hardware : Clone 386AT, 4megRAM, 2057 block Ramdisk with 1112's free OS : Minix v1.5(.10) with virtual console patches Compilers: ACK-C, Bruce Evans' bcc (16 and 32 bit) Installation Procedure: 1/- cd INSTALL sh yinstall.sh 2/- make stdiofp make stdio make test make testfp A lot of warnings (overflow constant and unsigned expressions) when compiled with ACK-C. yinstall.sh script and Makefile did not make any change to /usr/lib/libc.a. Library sources are in /usr/src/lib/ansi .... ***************** Earl Chew's Results compiled with bcc -0 ***************** Run at 20 mHz ------------- EStdio Minix Stdio ten real 4.0 user 3.7 sys 0.1 real 11.0 user 7.2 sys 3.3 putc real 1.0 user 0.8 sys 0.2 real 5.0 user 4.6 sys 0.2 fputs real 2.0 user 0.9 sys 0.1 real 5.0 user 4.9 sys 0.2 nfputs real 13.0 user 1.5 sys 11.1 real 3:18.0 user 18.5 sys 2:58.9 fwrite real 0.0 user 0.0 sys 0.0 real 6.0 user 5.9 sys 0.1 sprintf real 4.0 user 3.8 sys 0.0 real 11.0 user 10.7 sys 0.0 printf real 4.0 user 3.9 sys 0.1 real 14.0 user 10.8 sys 2.9 nprintf real 48.0 user 12.6 sys 35.1 real 3:23.0 user 21.1 sys 3:01.7 printfs real 1.0 user 1.2 sys 0.1 real 18.0 user 9.6 sys 8.5 putchar real 2.0 user 0.8 sys 0.1 real 5.0 user 4.4 sys 0.2 **************************** Compiled with ACK-C *************************** Run at 20 mHz Run at 25 mHz ------------- ------------- ten real 5.0 user 5.1 sys 0.2 real 4.0 user 4.1 sys 0.1 putc real 1.0 user 0.7 sys 0.2 real 1.0 user 0.6 sys 0.1 fputs real 1.0 user 0.8 sys 0.3 real 1.0 user 0.6 sys 0.3 nfputs real 24.0 user 1.6 sys 22.7 real 19.0 user 1.8 sys 17.4 fwrite real 0.0 user 0.0 sys 0.1 real 0.0 user 0.0 sys 0.1 sprintf real 4.0 user 4.6 sys 0.0 real 4.0 user 3.6 sys 0.0 printf real 5.0 user 4.5 sys 0.3 real 4.0 user 3.5 sys 0.3 nprintf real 5.0 user 5.1 sys 0.0 real 4.0 user 4.0 sys 0.0 printfs real 1.0 user 1.4 sys 0.3 real 2.0 user 1.1 sys 0.2 putchar real 1.0 user 0.5 sys 0.3 real 1.0 user 0.4 sys 0.2 *************************** Compiled with bcc -0 ***************************** Run at 20 mHz Run at 25 mHz ------------- ------------- ten real 4.0 user 3.7 sys 0.3 real 4.0 user 2.9 sys 0.3 putc real 1.0 user 0.8 sys 0.3 real 1.0 user 0.6 sys 0.2 fputs real 1.0 user 0.8 sys 0.3 real 1.0 user 0.6 sys 0.2 nfputs real 24.0 user 1.3 sys 22.8 real 20.0 user 1.1 sys 18.0 fwrite real 0.0 user 0.0 sys 0.1 real 0.0 user 0.0 sys 0.1 sprintf real 4.0 user 3.9 sys 0.0 real 3.0 user 3.1 sys 0.0 printf real 5.0 user 3.9 sys 0.2 real 3.0 user 3.0 sys 0.3 nprintf real 5.0 user 4.8 sys 0.0 real 4.0 user 3.8 sys 0.0 printfs real 2.0 user 1.0 sys 0.4 real 2.0 user 0.8 sys 0.2 putchar real 1.0 user 0.6 sys 0.3 real 1.0 user 0.5 sys 0.3 ****************** Minix v1.5 - Bruce Evan's 32 bit version ***************** Run at 25 mHz Run at 20 mHz ------------- ------------- ten real 3.0 user 2.3 sys 0.2 real 4.0 user 3.0 sys 0.2 putc real 2.0 user 0.7 sys 0.2 real 2.0 user 0.9 sys 0.3 fputs real 1.0 user 0.7 sys 0.2 real 1.0 user 0.8 sys 0.3 nfputs real 1:01.0 user 1.7 sys 58.3 real 1:16.0 user 1.3 sys 1:14.6 fwrite real 1.0 user 0.0 sys 0.3 real 0.0 user 0.0 sys 0.3 sprintf real 3.0 user 2.4 sys 0.0 real 3.0 user 3.1 sys 0.0 printf real 3.0 user 2.4 sys 0.2 real 3.0 user 3.1 sys 0.3 nprintf real 3.0 user 3.4 sys 0.0 real 4.0 user 4.3 sys 0.0 printfs real 1.0 user 0.9 sys 0.2 real 1.0 user 1.1 sys 0.3 putchar real 2.0 user 0.7 sys 0.3 real 1.0 user 0.9 sys 0.2 ****************************** exercise ********************************** 1/- Compiled with ACK-C : Caused a core dump on AT and a reboot on XT. 2/- Compiled with bcc -0 and bcc -3 : Run to the end. Successful exit. I wish to take this oprtunity to thank Bruce Evans and Earl Chew (and many others) for making my Minixing more enjoyable. Phi-Ho Hoang. ----- phi@InSearch.CAM.ORG InSearch - For a better Solution uunet!philmtl!altitude!InSearch.CAM.ORG!phi
cechew@bruce.cs.monash.OZ.AU (Earl Chew) (08/03/90)
In <26442@nigel.udel.EDU> phi@insearch.cam.org (phi) writes: > A lot of warnings (overflow constant and unsigned expressions) > when compiled with ACK-C. > yinstall.sh script and Makefile did not make any change to > /usr/lib/libc.a. Library sources are in /usr/src/lib/ansi .... I wonder where these warnings are being generated. It has been some time since I used ackc --- turn around time is *so* long. For the past few weeks I have been testing the code using bcc on Minix and gcc (-Wall -ansi -pedantic) on a Sun. I will regenerate everything using ackc this weekend and see if I can iron out any problems there. Your timing results seems consistent with mine. >****************************** exercise ********************************** >1/- Compiled with ACK-C : Caused a core dump on AT and a reboot on XT. >2/- Compiled with bcc -0 and bcc -3 : Run to the end. Successful exit. Urk. This is no good. Did you find out what caused the core dump? Did you ensure that you had chmem =64000 on the executable from the ack compiler? Earl -- Earl Chew, Dept of Computer Science, Monash University, Australia 3168 ARPA: cechew%bruce.cs.monash.oz.au@uunet.uu.net ACS : cechew@bruce.oz ----------------------------------------------------------------------
cechew@bruce.cs.monash.OZ.AU (Earl Chew) (08/03/90)
In <2810@bruce.cs.monash.OZ.AU> cechew@bruce.cs.monash.OZ.AU (Earl Chew) writes: >In <26442@nigel.udel.EDU> phi@insearch.cam.org (phi) writes: >> A lot of warnings (overflow constant and unsigned expressions) I've had a quick look at this. The warning comes from a check that is intended to catch __stdiosize_t being declared as a signed type (by mistake). The warning can be ignored --- I will fix the warning later. Earl -- Earl Chew, Dept of Computer Science, Monash University, Australia 3168 ARPA: cechew%bruce.cs.monash.oz.au@uunet.uu.net ACS : cechew@bruce.oz ----------------------------------------------------------------------