Hi,

On Sat, Mar 16, 2019 at 11:10 AM TK Chia <[email protected]> wrote:
>
> > Have you seen this before?
> >
> > * https://github.com/DarkWishMaster/TinyStdio
> > * http://www.sparetimelabs.com/tinyprintf/tinyprintf.php
>
> Anyway, what problems exactly did you come across in using the TinyStdio
> code?

I wasn't linking it correctly. (Have to be careful about external
symbols, link order, etc.) And even when I thought I got it working,
it ended up crashing. Luckily I had my own replacement (simply for
printf("%ld") only). So my old replacement itself saved me like 25 kb
(down to only 20 kb)! Yeah, even a "Hello, world!" was like 32 kb. I'm
definitely not complaining, but a full C99 or whatever printf() is a
bit overkill for simple programs. Oh, and at least with some other
compilers, you have to watch out for certain functions that
(sometimes) use it behind the scenes, e.g. assert() or perror(). It's
really only a concern for us who statically link because clearly
nobody in Linux etc. camps seems to care much.

Whatever. Again, not trying to complain, just saying it's a minor
problem. Not asking you to waste time on it, just found it
interesting.


_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to