delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/03/03/21:01:28

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: NoEmailAds AT execpc DOT com (Chris Giese)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: djgpp for kernel dev.
Date: Sat, 04 Mar 2006 01:51:42 GMT
Organization: PROPULSION GROUP
Message-ID: <4408f274.1503510@news.execpc.com>
References: <4404EB6F DOT D050DB39 AT compuserve DOT de> <200603011425 DOT k21EPHCE005449 AT envy DOT delorie DOT com> <du5jr6$fs81$1 AT news3 DOT infoave DOT net> <440798e7 DOT 2544010 AT news DOT execpc DOT com> <du94s4$1rac$1 AT news3 DOT infoave DOT net>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Complaints-To: abuse AT supernews DOT com
Lines: 54
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Rod Pemberton" <do_not_have AT sorry DOT bitbucket DOT cmm> wrote:

>/* Turbo C++ 1.0 seems to "lose" anything declared 'static const' */
>
>and another comment in SERIAL.C:
>
>/*********************************************************************
>this function used to look like this:
>static int deq(queue_t *q, unsigned char *data)
>but Watcom C produces broken code for such a function. I don't know why.
>**********************************************************************/
>
>The problem for both of those is the use of the keyword 'static'.

I thought they were compiler bugs...?
I know that static functions and global variables may be
deleted by the optimizer if they're not referenced, but these
functions _were_ referenced.

>I've restructured and ported djgpplba.c so it works with WATCOM
>(OpenWatcom1.3).

So did I :)
http://my.execpc.com/~geezer/temp/djdisk.c

>I can repost the complete code if you like, since they botched the author
>section...

It's public-domain, so they don't need to list the author.

>my.execpc.com/CE/AC/geezer/ods/libc lists the GCC/DJGPP callee-save
>registers but not those for WATCOM.  I believe the OW1.3 stack calling
>convention -3s uses: ebx,edi,esi,ebp  And, the OW1.3 register calling
>convention -3r uses:ebx,edi,esi,ebp,ecx,edx.  I'm not sure about the
>selectors or other optimization levels.

Thanks.

>Freedos-32's (http://freedos-32.sourceforge.net/) 'x' loader has never
>worked for me. But, your MBLOAD.C will almost load Freedos-32.  IIRC, it
>doesn't fill in the hard disk info, but otherwise works.

I starting modifying MBLOAD to make it support GRUB-like
config files and have a GRUB-like menu. I'll make a note
about the hard drive info. Thanks.

>I've added PS/2 keyboard routines to your standalone KBD.C.  Would you like
>a version?

No thanks, I've got that too, now.

Regards,
Chris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019