🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51438

Re: help wanted understand linker/assember with gcc

#51438
From: Michael Golden
Date: Mon, 17 May 1993 13:23
37 lines
1856 bytes
This has been asked twice in the past week, so I will post a response.

Page 268 of "Using and porting Gnu CC" version 2.3 (16 Dec 1992)
says that the order of prefixes tried for the executable files (as, ld, cc1, etc.)
is

1. Any prefix es specified by the iuser with -B

2. The environment variable GCC_EXEC_PREFIX, if any

3. The directories specified by the environment variable COMPILER_PATH

4. The macro STANDARD_EXEC_PREFIX (which should be defined in 
	machine.h for your particular machine.)

5. /usr/gnu/lib/gcc-lib/<machine>/<version>

6. The macro MD_EXEC_PREFIX

So, if you want a specific linker, assembler, preprocessor, whatever,
only a few times, but you normally want the system programs for that
job, then just use -B to tell gcc where they live.  They must
haveee the statndard names:

preprocessor : cpp
compiler : cc1
assembler : as
linker : ld

Otherwise, if you wantto always have a "customized" setup, then put links 
with those names in /usr/lib/gcc to whatever programs you want to have those
duties.

Michael Golden
mgolden@ecs.umich.edu

Is this a FAQ?  Where does the FAQ live?
Technical Details
Message-ID: <1t83kj$hm2@zip.eecs.umich.edu>
Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!howland.reston.ans.net!zaphod.mps.ohio-state.edu!uwm.edu!caen!zip.eecs.umich.edu!dip.eecs.umich.edu!mgolden
References: <1993May17.020345.1220@spectrum.xerox.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,771f436a20b02e48
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-05-17 06:25:44 PST
Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!howland.reston.ans.net!zaphod.mps.ohio-state.edu!uwm.edu!caen!zip.eecs.umich.edu!dip.eecs.umich.edu!mgolden
From: mgolden@dip.eecs.umich.edu (Michael Golden)
Newsgroups: gnu.gcc.help
Subject: Re: help wanted understand linker/assember with gcc
Date: 17 May 1993 13:23:31 GMT
Organization: University of Michigan EECS Dept., Ann Arbor, MI
Lines: 37
Distribution: world
Message-ID: <1t83kj$hm2@zip.eecs.umich.edu>
References: <1993May17.020345.1220@spectrum.xerox.com>
NNTP-Posting-Host: dip.eecs.umich.edu