🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53539

assembler branch distance

#53539
From: Andrew D Kailhofer
Date: Fri, 15 Nov 1991 06:21
33 lines
1900 bytes
I'm using gcc-1.40 on an NCR Tower 32/750 (a 68040 machine), and I'm
having a problem.  When compiling perl, in the file eval.c, I get the
error

Assembler: eval.c
	aline 2052(cline 2377): branch offset is too remote

Looking in eval.s, I see that this line is

	bra.w L%181

and from tm-tower.h I see that this was rewritten from

	jbra L%181
.

Does anyone else out there with a 68040 have any clue as to how long
(or short) the limit for a branch instruction is, and what the heck
configuration parameter to gcc I should use to fix it?

Yes, I know.  The right thing to do is to use gas and scrap NCR's old
fuddy-duddy assembler.  If I did that, I could run g++, too (the NCR
as has *really* stupid ideas about what's good in a label, and g++
just can't be dumbed-down enough), but I haven't been able to find a
set of patches to gas that really worked for me.  I seem to recall
that the last time I tried (with patches to 1.36), I couldn't get gas
compiled so as to produce sdb-style stabs.

Any help?

Andy Kailhofer
Ameritech Services, Inc.    a907932@nast0.bdy.wi.ameritech.com
414/678-7793
Technical Details
Message-ID: <1991Nov15.062153.4215@uwm.edu>
Path: arc1-ca.pugleaf.net!gmdzi!ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!uwm.edu!csd4.csd.uwm.edu!adk

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,fd8f35535f2e62bc,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1991-11-15 02:00:49 PST
Path: arc1-ca.pugleaf.net!gmdzi!ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!uwm.edu!csd4.csd.uwm.edu!adk
From: adk@csd4.csd.uwm.edu (Andrew D Kailhofer)
Newsgroups: gnu.gcc.help
Subject: assembler branch distance
Summary: gcc produces a very long branch
Keywords: bra.w jbra 68040 assember branch
Message-ID: <1991Nov15.062153.4215@uwm.edu>
Date: 15 Nov 91 06:21:53 GMT
Sender: news@uwm.edu (USENET News System)
Reply-To: a907932@nast0.bdy.wi.ameritech.com
Distribution: gnu
Organization: Computing Services Division, University of Wisconsin - Milwaukee
Lines: 33
Originator: adk@csd4.csd.uwm.edu