Discussion:
[Freedos-kernel] removing functions?
Roy
2015-01-30 03:00:41 UTC
Permalink
Hello list,

Is there any guide that can help on compiling custom kernel with less-used
function(for example, NLS functions) removed/stubified?

Regards,
Roy
Eric Auer
2015-01-30 09:03:08 UTC
Permalink
Hi Roy,
Post by Roy
Is there any guide that can help on compiling custom kernel with less-used
function(for example, NLS functions) removed/stubified?
Well FAT32 is a compile time option and I think RayeR made
a slightly stripped kernel for his "DOS in your flash BIOS
chip" micro... ehh... distro, but there is no one size fits
all answer to your question. If you can make a list of the
things you want to remove, then people on this list could
tell you how much size difference it would make and how bad
of a hack removing those functions would be :-) Note that
you do not want to spend much effort for this: Most users
have much bigger disks and with DOS extenders and already
by simply having DOS=HIGH in the HMA, kernel size is not
an issue anyway. Also, the FreeDOS kernel is designed to
be nice and small compared to the big feature set... :-)

Regards, Eric
Roy
2015-02-10 00:12:10 UTC
Permalink
Post by Eric Auer
Hi Roy,
Post by Roy
Is there any guide that can help on compiling custom kernel with less-used
function(for example, NLS functions) removed/stubified?
Well FAT32 is a compile time option and I think RayeR made
a slightly stripped kernel for his "DOS in your flash BIOS
chip" micro... ehh... distro, but there is no one size fits
all answer to your question. If you can make a list of the
things you want to remove, then people on this list could
tell you how much size difference it would make and how bad
of a hack removing those functions would be :-) Note that
you do not want to spend much effort for this: Most users
have much bigger disks and with DOS extenders and already
by simply having DOS=HIGH in the HMA, kernel size is not
an issue anyway. Also, the FreeDOS kernel is designed to
be nice and small compared to the big feature set... :-)
If I want to remove fdconfig.sys support, break, numlock, echo, switches,
country, HLT idle, and menus in CONFIG.SYS options,
and hardcoded NLS page, and all NLS stuff(replaced with stub)

How much I can shrink?
Post by Eric Auer
Regards, Eric
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take
a
look and join the conversation now. http://goparallel.sourceforge.net/
Tom Ehlert
2015-02-10 11:18:50 UTC
Permalink
Post by Roy
If I want to remove fdconfig.sys support, break, numlock, echo, switches,
country, HLT idle, and menus in CONFIG.SYS options,
and hardcoded NLS page, and all NLS stuff(replaced with stub)
How much I can shrink?
a) how much of what?
filesize of kernel.sys? resident memory used?


b) take a look at kernel.map. *all* of NLS is ~500 byte
probably 500 byte for menus etc., maybe 1K

after compression, probably less then 1 K reduction in filesize.

certainly not worth the trouble or even worth talking about


Tom

Loading...