[comp.lang.fortran] Suppresing compiler generated "_" suffix on names

kozl@mpx2.lampf.lanl.gov (KOZLOWSKI, TOM) (01/08/91)

        Does anyone out there know of UNIX (at the moment ULTRIX on
a DECstation 5000) based F77 compilers that either do not append or
allow suppressing appending the "_" suffix to subprogram and
common block names?   The few I am familiar with always do this.
That "helpful feature" sure makes it difficult to maintain F77 source
code in a multi-language, multi-operating system environment.

Tom Kozlowski
LAMPF - Data Acquisition Support
Group MP-6
LANL
Los Alamos, NM 87545

wsj@hpcllcm.HP.COM (Bill Johnson) (01/10/91)

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.

Bill Johnson
wsj@hpda.hp.com

This response does not represent the official  position of, or statement
by,  the  Hewlett-Packard  Company.  The  above  data  is  provided  for
informational  purposes  only.  It is supplied  without  warranty of any
kind.

jbc@hpcllmv.HP.COM (Jeff Caldwell) (01/10/91)

>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

This response does not represent the official  position of, or statement
by,  the  Hewlett-Packard  Company.  The  above  data  is  provided  for
informational  purposes  only.  It is supplied  without  warranty of any
kind.
----------

wsj@hpcllcm.HP.COM (Bill Johnson) (01/10/91)

>>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

This response does not represent the official  position of, or statement
by,  the  Hewlett-Packard  Company.  The  above  data  is  provided  for
informational  purposes  only.  It is supplied  without  warranty of any
kind.

cunniff@hpfcso.HP.COM (Ross Cunniff) (01/11/91)

>>>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