🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53554

GCC Addressing!

#53554
From: Benjamin W. Lee
Date: Fri, 25 Oct 1991 20:35
18 lines
1578 bytes
GCC seems assume index and base register is available at all time.
I am working on a chip does not support both across the majority of
the instruction set. Hence, I am trying to avoid such code been
generated, presently, the static array addressing. I've been thinking
how to deal with this problem and found several potential places to
work on. I'd appreciate if anyone can give me some insight of which
approach(s) will be better?
1. prepare a pattern in machine description to modify the instances
	that use two registers in (mem: ...). Will this work?
2. scan through stmt.c and find appropriate routine(s) to `fixup'
	generated address. Will this stir up later passes?
3. Don't know if anything can be done in tree such as build_array_ref
	such it will carry information downward?

I've tried GO_IF_LEGITIMATE_ADDRESS, LEGITIMIZE_ADDRESS macros and it
seems problems got generated before the macros can do anything.

Thanks if anybody can comment on this.
Technical Details
Message-ID: <1991Oct25.203545.6446@digi.lonestar.org>
Path: arc1-ca.pugleaf.net!gmdzi!zeus.ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!digi.lonestar.ORG!blee

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,85fe9917221d08d4,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1991-10-27 07:00:26 PST
Path: arc1-ca.pugleaf.net!gmdzi!zeus.ieee.org!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!digi.lonestar.ORG!blee
From: blee@digi.lonestar.ORG (Benjamin W. Lee)
Newsgroups: gnu.gcc.help
Subject: GCC Addressing!
Keywords: SUNOS gcc TCP cc
Message-ID: <1991Oct25.203545.6446@digi.lonestar.org>
Date: 25 Oct 91 20:35:45 GMT
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: DSC Communications, Plano Tx.
Lines: 18