Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcnc!gatech!rutgers!husc6!ddl From: ddl@husc6.UUCP (Dan Lanciani) Newsgroups: comp.os.minix Subject: Re: Need help with 'dos2out' Message-ID: <2292@husc6.UUCP> Date: Sat, 13-Jun-87 04:18:33 EDT Article-I.D.: husc6.2292 Posted: Sat Jun 13 04:18:33 1987 Date-Received: Sat, 20-Jun-87 19:10:39 EDT References: <6249@beta.UUCP> <6251@beta.UUCP> Organization: Harvard University Computer Services Lines: 23 Keywords: dos2out help exe file format Summary: compile -mt In article <6251@beta.UUCP>, myxm@beta.UUCP (Mike Mitchell) writes: > > I have also attempted to compile a program containing long integers, and > received complaints that the library which I created did not contain > routines for performing int to long conversions as well as other long > functions (whew). > > No problem, just extract the long routines from the Turbo C library > and use those... But now the number of items in the relocation table > of the exe file is 14! dos2out absolutely refuses to do anything about > this. Turbo C insists on generating far calls to all the "helper" routines, even in small model. However, if you compile in TINY model (-mt), it will generate a push of the code segment followed by a short call. While vaguely distressing from an efficiency point-of-view, this will let you do what you want. Of course, you could also compile small model to assembly code, run an editor script to change the sense of the calls, and assemble with MASM. Don't forget to patch up the library code to use near returns though... Dan Lanciani ddl@harvard.*