Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!munnari!bruce!cechew From: cechew@bruce.oz (Earl Chew) Newsgroups: comp.os.minix Subject: Re: Cross Compiling under TurboC Professional Package Message-ID: <754@bruce.oz> Date: 14 Mar 89 00:18:15 GMT References: <3561@sdsu.UUCP> Organization: Comp Sci, Monash Uni, Australia Lines: 24 From article <3561@sdsu.UUCP>, by mullen@sdsu.UUCP (deborah mullen): > > Note: Error from dos2out "too many relocations": means you did not > compile with tiny model. The small model generates far calls and returns > to the TurboC compiler routines. Remember, for the dos2out (as distributed), > the data segment must start on the next paragraph boundary. > --Deborah Mullen For those of you who are interested, it is possible to compile under TC for the Small model and get the advantages of separate I&D. TC generates far calls with resultant extra relocations for the linker and .exe loader to figure out for the calls to the library support routines. These in fact can be made to be near calls. I have used two ways to do this in the past: 1. A program to scan the .exe and convert the extra far calls to near calls. The patched .exe file can then be passed to dos2out. 2. Use the Microsoft linker with /FARCALLTRANSLATION in effect. If there is interest, I can see if I can find the program mentioned in (1). Earl