Path: utzoo!utgpu!water!watmath!clyde!bellcore!decvax!ucbvax!pasteur!ames!umd5!uvaarpa!virginia!babbage!mac3n From: mac3n@babbage.acc.virginia.edu (Alex Colvin) Newsgroups: comp.sys.ibm.pc Subject: Re: Need to optimize 8086 C code for size Message-ID: <161@babbage.acc.virginia.edu> Date: 15 Feb 88 15:47:08 GMT References: <3680@ihlpf.ATT.COM> <45900108@uxe.cso.uiuc.edu> Organization: University of Virginia Lines: 8 Use medium or compact model. Avoid always reloading segment registers. The 80?*8[68] wasn't meant to be used in large/huge model. See if you can find a compiler that supports this. More important, see if you can find a linker. And expect lots of nasty, obscure, nondeterministic bugs. Another approach for getting extremely small, slow programs is to build an interpreter for your problem domain, then interpret a program for your problem. Some BASIC programs will be considerably tighter than C.