Mail Archives: djgpp/1999/04/28/02:56:00
arh14 AT cornell DOT edu wrote:
> > I also hate to burst your bubble, but you can't use the
> > printf() statement in an OS unless you write your own low level version.
>
> Bah! If you are writing for an x86 system and have x86 code, why can't
> you use it?
It depends what you mean by "use it". I just read both extremes
on this question and I think the answer lies somewhere in between.
I am sure you can use DJGPP's printf in your own OS (technical
opinion, not legal opinion). The problem is that if you simply
call DJGPP's printf other routines in DJGPP's stdlib will get
called directly or indirectly. Some of those routines can't
run in your new OS (unless you build in a lot of int21h support
in your OS).
Using printf and many other routines from DJGPP's stdlib may be
the easiest way to get such routines into your OS, but you do
need to figure out which low level routines you must replace
(the free source code makes that pretty easy). Replacing those
low level routines isn't trivial, but it is probably easier than
writing from scratch printf and many of the other parts of stdlib
that you may want to use.
--
http://www.erols.com/johnfine/
http://www.geocities.com/SiliconValley/Peaks/8600/
- Raw text -