Re: Help- selective symbol exposure after link

Paul David Fox <pfox@lehman.com>
11 Feb 1997 22:48:58 -0500

          From comp.compilers

Related articles
[9 earlier articles]
Re: Help- selective symbol exposure after link leichter@smarts.com (Jerry Leichter) (1997-01-30)
Re: Help- selective symbol exposure after link root@jacob.remcomp.fr (1997-02-02)
Re: Help- selective symbol exposure after link Dave@occl-cam.demon.co.uk (Dave Lloyd) (1997-02-07)
Re: Help- selective symbol exposure after link Dave@occl-cam.demon.co.uk (Dave Lloyd) (1997-02-07)
Re: Help- selective symbol exposure after link fjh@murlibobo.cs.mu.OZ.AU (1997-02-08)
Re: Help- selective symbol exposure after link ok@cs.rmit.edu.au (1997-02-11)
Re: Help- selective symbol exposure after link pfox@lehman.com (Paul David Fox) (1997-02-11)
Re: Help- selective symbol exposure after link jan@fsnif.neuroinformatik.ruhr-uni-bochum.de (Jan Vorbrueggen) (1997-02-16)
Re: Help- selective symbol exposure after link Dave@occl-cam.demon.co.uk (Dave Lloyd) (1997-02-20)
Re: Help- selective symbol exposure after link rfg@monkeys.com (1997-02-27)
| List of all articles for this month |

From: Paul David Fox <pfox@lehman.com>
Newsgroups: comp.compilers
Date: 11 Feb 1997 22:48:58 -0500
Organization: Lehman Brothers, Inc.
References: 97-01-183 97-01-189 97-01-212 97-02-047
Keywords: linker

> The real problem is that C doesn't need it and has no ability to
> express this layer of scope. With languages like Algol 68, Fortran 90,


Oh yes it does! C does need it. If C had it then we could write
portable shared libraries. Have you ever looked into how difficult and
pathologically different every Unix system is when it comes to
shared-lib bindings?


E.g. under Solaris 2.5, all public symbols are exported. Under AIX,
no public symbols are exported - you have to explicitly state which
ones. DEC Unix is similar.


You can write portable code but when it comes to shared libs, nothing
is portable. Just look at the hacks that Microsoft have added to their
C language over the years (_near, _far, __declexport, etc).


Microsoft have nearly got it right and I hope that they soon finish
tampering. its a shame their DLL implementation leaves an awful lot to
be desired.


Why oh why do the compiler people ignore the linker?
_______________________________________________________
| Paul David Fox Lehman Brothers.
| E-mail: pfox@lehman.com |
| Home: fox@crisp.demon.co.uk |
| Tel: +44 171 601 0011 x6397 |
--


Post a followup to this message

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