Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!uunet!swlabs!jack From: jack@swlabs.UUCP Newsgroups: comp.lang.c Subject: Re: Types Message-ID: <320@swlabs.UUCP> Date: Tue, 1-Sep-87 08:52:27 EDT Article-I.D.: swlabs.320 Posted: Tue Sep 1 08:52:27 1987 Date-Received: Thu, 3-Sep-87 01:43:43 EDT References: <7264@brl-adm.ARPA> <734@sdchema.sdchem.UUCP> <293@osupyr.UUCP> <364@mcdsun.UUCP> Organization: Software Labs, Ltd. Easton CT USA Lines: 21 In article <364@mcdsun.UUCP>, fnf@mcdsun.UUCP (Fred Fish) writes: > In article <296@swlabs.UUCP> jack@swlabs.UUCP I wrote: > > Then let the assembler choose the long or short form of > >the jump depending on the worst case distance from the target. > > This only works for jumps to local symbols within the same assembly module, > and GREATLY complicates the work of a linker which optimizes both local > and global references (since it must now cope with relocation done by > the assembler when it inserts or deletes code between the definition and > reference of a local symbol). The algorithm presented requires no such optimization by the linker. The assembler described yields object code with the correct long/short jumps and no additional relocation/fixup information. There is nothing for the linker to fixup. -- Jack Bonn, <> Software Labs, Ltd, Box 451, Easton CT 06612 seismo!uunet!swlabs!jack