🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51948

far calls for MIPS 3000 family

#51948
From: Doug Gerecht 806 1031
Date: Fri, 12 Mar 1993 10:57
23 lines
1685 bytes
I've been trying to get gcc to generate far functions call (jalr
ra,$reg) instead of (jal symbol_name) while optimizing.  With no
optimization it generates the register based jump but turning on
optimization causes that to be reduced to the 28-bit jump
(understandable since it saves 2 instructions).

I have need to do calls from the virtual memory space to the fixed
physical memory space of the MIPS processor.  This requires a full 32
bit jump.  I've tried playing with the no-function-cse flags and
#define's.  Additionally I've tried modifying calls.c directly to do a
force_reg() but to no avail.  I suspect the optimizer is coming along
and deciding that it can do better.

Can anyone point me in the direction of where in the optimizer to look
for this (or, if I'm totally in left field, where else I should be
looking).

						Thanks in advance,
-- 
          __  /    __  /    /   /    ___/	     Doug Gerecht
         /   /    /   /    /   /    /
        /   /    /   /    /   /    / - /	     dougg@kentek.com
      _____/   _____/   _____/   _____/
Technical Details
Message-ID: <DOUGG.93Mar12105703@kbsw3.kentek.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!csn!kbsw1!dougg

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,52d748975e42ceec,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-03-12 11:00:19 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!howland.reston.ans.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!csn!kbsw1!dougg
From: dougg@kentek.com (Doug Gerecht 806 1031)
Subject: far calls for MIPS 3000 family
Sender: dougg@kbsw1 (Doug Gerecht 806 1031)
Message-ID: <DOUGG.93Mar12105703@kbsw3.kentek.com>
Date: 12 Mar 93 10:57:03
Organization: Kentek Information Systems
Lines: 23