From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f891f,e3872dcf7881cc60 X-Google-Attributes: gidf891f,public X-Google-Thread: f8c65,3a0cb1c81182932 X-Google-Attributes: gidf8c65,public X-Google-Thread: 109fba,c17a40c108d019fd X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,b865518fde7413cd X-Google-Attributes: gid103376,public X-Google-Thread: 1014db,e3872dcf7881cc60 X-Google-Attributes: gid1014db,public X-Google-ArrivalTime: 1993-03-10 01:18:10 PST Xref: sparky comp.lang.ada:4539 comp.lang.c:22433 comp.lang.c++:22277 comp.lang.modula2:2027 comp.lang.misc:4372 Path: sparky!uunet!caen!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!sgiblab!munnari.oz.au!goanna!ok From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.modula2,comp.lang.misc Subject: Re: Grouping data from different modules together Message-ID: <16940@goanna.cs.rmit.oz.au> Date: 10 Mar 93 07:43:53 GMT References: <1993Mar1.153217.3290@ibr.cs.tu-bs.de> <1993Mar4.080713.19045@ibr.cs.tu-bs.de> Followup-To: comp.lang.c Organization: Comp Sci, RMIT, Melbourne, Australia Date: 1993-03-10T07:43:53+00:00 List-Id: In article <1993Mar4.080713.19045@ibr.cs.tu-bs.de>, hestermeyer@ida.ing.tu-bs.de (Andreas Hestermeyer) writes: > But how should we tell the linker ? [ about grouping things ] > If we don't do that in the language > we again run into a situation where we would have to make changes in more > than one file, if we change only one thing. > And, looking at the way linkers presently get their instructions what to do : > it's all in the language by using keywords like 'extern' (C,C++). Why shouldn't > something like this be used here ? Read the manual for the UNIX System V linker. It will surprise you. The on-line manual page says something like An input file [specified on the command line] that is not an object file is assumed to be an archive library (see ar(1)) OR A TEXT FILE CONTAINING LINK EDITOR DIRECTIVES (see "The Link Editor" in the [System V] Programmer's Guide). You can do amazing things with the System V linker. And what's more, you can do them with _all_ supported languages. System dependent concepts belong in system dependent tools.