Mail Archives: djgpp/2006/03/03/21:01:28
"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 -