On Wed, 24 Mar 2004, Luchezar Georgiev wrote: > I got 95 bytes for OpenWatcom FAT32/386. Perhaps we measure that > difference in different ways. I just compare the sizes of the old and new > object files... ;-)
Ah I see. That's not a very reliable way. For instance for your new patch I get (I'm cross-compiling on Linux nowadays mostly; 2.7 second kernel compiles vs. 15 seconds in DOSEMU is quite an advantage) $ wcc -I../hdr -3 -os -s -j -DWITHFAT32 inthndlr.c.~1.65.~ -zgf -zff [...] inthndlr.c.~1.65.~: 2066 lines, included 4117, 0 warnings, 0 errors Code size: 5652 $ wcc -I../hdr -3 -os -s -j -DWITHFAT32 inthndlr.c -zgf -zff [...] inthndlr.c: 2051 lines, included 4117, 0 warnings, 0 errors Code size: 5619 so here's a 33 bytes reduction. However if I look at the object files I see: ls -l inthndlr.o inthndlr.c.~1.65.o -rw-rw-r-- 1 enbeo users 12230 Mar 25 00:17 inthndlr.c.~1.65.o -rw-rw-r-- 1 enbeo users 12110 Mar 25 00:16 inthndlr.o and here there are 120 fewer bytes. But the object file contains more than just code... The best thing to look at is the map file: before PGROUP 0000:0000 00000100 LGROUP 0010:0000 000005ee DGROUP 006f:0000 00001646 TGROUP 01d4:0000 0000a6b0 I_GROUP 0c3f:0000 00005f9c after PGROUP 0000:0000 00000100 LGROUP 0010:0000 000005ee DGROUP 006f:0000 00001646 TGROUP 01d4:0000 0000a68f I_GROUP 0c3d:0000 00005f9c and 0xa6b0 - 0xa68f = 33. 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
