On Wed, 5 Jan 2005, Peter Fedorow wrote: > . . . Is the offical FreeDOS kernel only intended for PC use, or also > for embedded small devices? > > If it is only for PC use, then it doesn't matter, and it should be kept > as easy to understand/debug as possible. > > If use in embedded small devices is also the target, saving every byte > often counts. In that case, add a compiler conditional, perhaps named > OptimizeForSize or SaveEveryByte, and make the inclusion of the BREAK > conditional. And, to avoid hurting the code readability, put that > conditional in a macro that will be used wherever similiar tradeoffs are > made. > > OmmitIfOptimizeSize break ();
Very hard to justify such macros, then you may as well use a comment, the potentially nasty fallthrough would still be there in the "embedded case". IMHO if you really want to save space for embedded stuff you should selectively remove features (e.g. FAT12 or FAT32, LBA, FCB stuff, whatever). Those in the business hopefully make money of their embedded stuff, and they are free to make such modifications; they should not prey to the kernel developers to do it. Bart ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Freedos-kernel mailing list Freedos-kernel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-kernel