> What percentage of C programs do not contain or use one of:

On a DOS, Windows, Linux, or handheld machine?  It makes a fair difference.

>    libc

DOS/Linux: nothing but.
Windows: I use Delphi, so.. no.
Palm: I don't need to.  If I find a function not available in the OS, either I 
write my own, or take a copy from the GNU libc.  strrchr is missing from the 
PalmOS routines, I noticed.

>    stlib
>    stdio

These only really apply to console systems.  Palm has no real use for stdio, 
as it's database/file routines are quite sufficient.

>    PalmOSRuntime_2i_A5.lib

Eh?  My C code uses no runtime files, though may have GLIB library code 
compiled in.  Did you know that Metrowerks uses a compiled-in runtime file? 
(which may, in fact, be what you are talking about here...) There are no 
32-bit add/sub/mul/div operations in the 68k processor, among other 
glitches... you can generate frighteningly small code in Metrowerks if you 
remove the standard library included by default in every project. ;)

>    MathLib.prc

I have used MathLib once, for a very, very small program.  I'll probably never 
use it again. *shudder*

> BTW: As long as people are plugging their own solutions:

Why are we sticking to BASIC?  My solution is one many thousands (if not 
millions) of people use for everything from embedded/handheld development, to 
large scale operating systems.  GNU C Compiler (GCC).  It's free, widely 
supported, and best of all, free.  It works, generates tight code, and is 
standard with every Linux distribution in the world.  Even MacOSX comes with 
it.  You can compile DOS, Windows, Macintosh, Linux, and Palm applications 
with it, and it support cross-compiling to hundreds of archatectures.  Eat 
that, Metrowerks, Microsoft, and Borland.  Did I mention that it's free? ;)

Of course, I'm a cheap, starving code architect, so... ^_^

-- 
Matthew (Darkstorm) Bevan       [EMAIL PROTECTED]
Margin Software, NECTI.         http://www.marginsoftware.com
        Re-inventing the wheel, every time.

 - "It took me fifteen years to discover that I had no talent for writing,
but I couldn't give up because by that time I was too famous."
                -- Robert Benchly


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to