removing functions?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

removing functions?

Roy Tam
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


------------------------------------------------------------------------------
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/
_______________________________________________
Freedos-kernel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: removing functions?

Eric Auer-3

Hi 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



------------------------------------------------------------------------------
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/
_______________________________________________
Freedos-kernel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: removing functions?

Roy Tam
In Fri, 30 Jan 2015 17:03:08 +0800, Eric Auer <[hidden email]> wrote:

>
> Hi 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?

>
> 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/


------------------------------------------------------------------------------
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/
_______________________________________________
Freedos-kernel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: removing functions?

tom ehlert
> 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


------------------------------------------------------------------------------
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/
_______________________________________________
Freedos-kernel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel
Loading...