On Sun, 22 Aug 2004, Luchezar Georgiev wrote:

> Thanks! Silly me, I had forgotten to rename the FAT and CPU variables to
> XFAT and XCPU, so what I was getting was a 8086 kernel! Now, with
> OpenWatcom 1.3, the uncompressed 80386/FAT32 kernel is...
>
>       63978 bytes!!! HOORAY!!! ;-) ;-) ;-)

Still strange. I get 64266, doesn't matter whether it's OW 1.2 or 1.3.

The
#if !defined(FORSYS)
#pragma aux default parm [ax dx cx] modify [ax dx es fs]
#endif
in portab.h works only if you use the 386 options that may explain why it
didn't work for you.

The pragma reduces it to 63850 (from 64266, ie. 416 bytes).

To reduce compressed size you can try
#pragma aux default parm [ax dx] modify [ax bx cx dx es fs]
which adds ~200 bytes uncompressed but reduces 300 compressed.
Also shuffling the link order helps a bit.

OBJS1=kernel.obj entry.obj intr.obj irqstack.obj apisupt.obj io.obj \
console.obj
OBJS2=printer.obj serial.obj dosidle.obj execrh.obj asmsupt.obj int2f.obj \
nlssupt.obj
OBJS3=nls_hc.obj procsupt.obj dsk.obj error.obj blockio.obj chario.obj \
break.obj
OBJS4=fatfs.obj fatdir.obj fattab.obj dosfns.obj fcbfns.obj \
inthndlr.obj
OBJS5=ioctl.obj memmgr.obj task.obj newstuff.obj dosnames.obj nls.obj
OBJS6=prf.obj network.obj sysclk.obj lfnapi.obj systime.obj initclk.obj
OBJS7=initdisk.obj inithma.obj main.obj config.obj iprf.obj dyninit.obj \
iasmsupt.obj

~100 bytes off compressed kernel.

-zm gets it further but that's broken (segments messed up), but if that
can be fixed you just need to get it below 40960 (80 sectors).

Anyway, just to give some ideas.

Bart


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to