On Mon, 22 Mar 2004, Luchezar Georgiev wrote:

> On Mon, 22 Mar 2004 10:29:28 +0000, Bart Oldeman wrote:
>
> > Make f_diroff an entry offset so it can be 16bits. Enforce the 65536
> > entry limit in dir_read(). Saves 80 bytes or so + 2 bytes in every
> > f_node.
>
> Great! Saves 112 bytes of LOW memory for my FILESHIGH=58!

I'll save you another 224 bytes soon... f_boff and f_sector aren't
necessary to keep resident. More savings (eliminating f_back,
transforming (f_dirstart (4 bytes),f_diroff (2 bytes)) into (f_sector (4
bytes), f_diroff (1 byte), and maybe even using SFT's to store resident
info) are more complicated.

> > if (new_diroff == 65535)
>
> Borland C++ complains here. Change the constant to 65535UL (see patch
> below).

ok, I'll make it 65535U then, or maybe 0xffff. Then the U is not
necessary.

Bart




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to