Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!apple!agate!ucbvax!hplabs!hpfcso!cunniff From: cunniff@hpfcso.HP.COM (Ross Cunniff) Newsgroups: comp.lang.fortran Subject: Re: Suppresing compiler generated "_" suffix on names Message-ID: <9080010@hpfcso.HP.COM> Date: 11 Jan 91 15:54:49 GMT References: <10557@lanl.gov> Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 27 >>>The f77 on Hewlett-Packard's 9000 Series 800 RISC-based machines doesn't >>>prepend or postpend underbars to the name unless requested. The >>>compiler directive $POSTPEND will add underbars after all external names >>>to provide compatibility with BSD-based UNIX systems. >>> >> >>Similar functionality is also provided by the HP 9000 Series 300 (workstations) >>and 3000 Series 900 (MPE/XL - HP proprietary OS) compilers. >> >>Jeff Caldwell >>jbc@hpda.hp.com >Actually, the Series 300 doesn't provide the option of not having >underbars magically added to the symbols. >Bill Johnson >wsj@hpda.hp.com Actually, the Series 300 always adds the leading underscore (as do the C and Pascal compilers), and optionally adds the trailing underscore when $POSTPEND or +ppu is specified. Note that no high-level language (C, FORTRAN, Pascal) code can tell that the leading underscore is added. Only assembly code will notice this. Ross Cunniff Hewlett-Packard Colorado Language Lab cunniff@hpfcla.HP.COM