On Sunday 03 June 2007 12:43, James Knott wrote:
Anyone here remember doing assembly code in DEBUG? Many years ago, someone wanted a DOS utility that would just return an error code and do nothing else. I wrote one in assembler, using DEBUG, and it was only 5 bytes long. The same thing in Turbo C, came in at a few K bytes.
A lot of that depends on what library elements get compiled in by default, and how much you could strip that down. If you wrote the core of this functionality in a separate C file, the size of the resulting object file would be more indicative - the trick would be either to compile main() without all of the overheads, or find a shortcut to invoke the requested function, and link that instead. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org