🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Michael Gersten Sat, 12 Sep 1992 02:18
Compiler initialization -- reg+reg+offset test
#1127
Author: Michael Gersten
Date: Sat, 12 Sep 1992 02:18
18 lines
1136 bytes
I'm wondering if this is a bug or not, or if there's something subtle  
that I'm missing.

During initialization, gcc tried to see if reg+reg+offset is a legal  
addressing mode, by taking the frame pointer, adding it to itself,  
and a small constant 4.

Shouldn't this test be with a psuedo register, not a fixed register?  
Its possible that a machine may allow reg+reg only if one of the  
regs is in a small set (such as the military 1750), which need not  
be the frame pointer.

(In this case it ultimately doesn't matter, as the 1750 doesn't allow  
the sum to be offset.)
--
		Michael Gersten		michael@stb.info.com
HELLO! I'm a signature virus! Join in the fun and copy me into yours!
ex:.-1,. w $HOME/.signature
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads