Re: Smart linking under UNIX

thorinn@diku.dk (Lars Henrik Mathiesen)
Sun, 25 Aug 91 17:24:01 GMT

          From comp.compilers

Related articles
[6 earlier articles]
Re: Smart linking under UNIX hyatt@cis.uab.edu (1991-08-22)
Re: Smart linking under UNIX henrik@tazdevil.llnl.gov (1991-08-22)
Re: Smart linking under UNIX henrik@tazdevil.llnl.gov (1991-08-22)
Re: Smart linking under UNIX weitek!ars@Sun.COM (1991-08-22)
Re: Smart linking under UNIX dalamb@umiacs.umd.edu (1991-08-23)
Re: Smart linking under UNIX pardo@gar.cs.washington.edu (1991-08-23)
Re: Smart linking under UNIX thorinn@diku.dk (1991-08-25)
Re: Smart linking under UNIX przemek@rrdstrad.nist.gov (1991-08-26)
Re: Smart linking under UNIX davidsen@crdos1.crd.ge.com (1991-08-26)
Re: Smart linking under UNIX liam@dcs.qmw.ac.uk (William Roberts) (1991-08-27)
Re: Smart linking under UNIX mjs@hpfcso.fc.hp.com (Marc Sabatella) (1991-08-27)
| List of all articles for this month |

Newsgroups: comp.arch,comp.compilers
From: thorinn@diku.dk (Lars Henrik Mathiesen)
Keywords: linker, Fortran
Organization: Department of Computer Science, U of Copenhagen
References: 91-08-128
Date: Sun, 25 Aug 91 17:24:01 GMT

dalamb@umiacs.umd.edu (David Lamb) writes:
>[Some years ago, I saw a Fortran compiler that looked at all of the format
>statements in a routine and emitted dummy external references to force in the
>runtime code corresponding to the format types actually used.


The FORTRAN 4 compiler for RT-11 on PDP-11s did that. The linker allowed a
runtime object module to specify only one pointer in a global table:


.csect sys$p ro,glb,ovr
.=.+26
.word i$fmt


will initialise the 12th word in sys$p and leave the rest alone.


(The formats were translated to an intermediate form where each format letter
became an offset into the table. Of course, the runtime format interpreter
module had to include references to all the format conversion routines.)
--
Lars Mathiesen, DIKU, U of Copenhagen, Denmark [uunet!]mcsun!diku!thorinn
thorinn@diku.dk
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.