* Crossposted in area PUBLIC_DOMAIN, AUST_C_HERE, OS2PROG
Being hatched into the PDOMAIN TIC echo now, and available for
FREQ from 3:711/934 with magic name "PDPCLIB" is PDPC006.ZIP,
a public domain C runtime library for OS/2. It is not complete
but the most important stuff has been done, specifically the
file i/o required to read and write text and binary streams.
This is what most of my programs do. It is specifically designed
with fread() for binary and fgets() for text mode in mind.
I am interested in anyone who wants to do proper performance
testing of it, or indeed proper testing of it, as I have only
done minimal, and plan to check out the stuff as I actually
come to use it, which means some things, like bsearch, which
I have never used, have not been tested at all.
PDPCLIB can be used with EMX, CSET, Borland, Watcom. Below are
the results of VERY CRUDE TESTS which I ran. BTW, if anyone
would like to suggest a better way of packaging the product, or
let me know about anything I did which is undesirable, e.g. the
underscores on externals, please let me know. BFN. Paul.
PERFORMANCE
-----------
I haven't done any performance testing in great detail, although
I did do minimal testing using perf1.c, perf2.c and perf3.c and
got the following results:
fgets - Watcom takes 28 seconds compared to PDPCLIB's 10.
fread - Watcom takes 10 compared to PDPCLIB's 8.
That is PDPCLIB compiled with Watcom by the way.
@EOT:
---
* Origin: X (3:711/934.9)
|