Re: Beyond Complex Register Management

2012-08-08 Thread Mike Stump
On Aug 8, 2012, at 11:14 AM, DJ Delorie wrote: > It's the weird addressing modes that confuse gcc. Ah, yes... That problem. Sigh, my port is nice and orthogonal and doesn't suffer in this area, so... no solution from me.

Re: Beyond Complex Register Management

2012-08-08 Thread Mike Stump
On Aug 8, 2012, at 11:16 AM, Nathan Froyd wrote: > On Wed, Aug 08, 2012 at 10:52:28AM -0700, Mike Stump wrote: >> As we move to C++, I'd love for port maintainers to be able to get together >> and hoist _up_ code from the port so other ports can use it and thus, have >> more sharing. We make hea

Re: Beyond Complex Register Management

2012-08-08 Thread Nathan Froyd
On Wed, Aug 08, 2012 at 10:52:28AM -0700, Mike Stump wrote: > As we move to C++, I'd love for port maintainers to be able to get together > and hoist _up_ code from the port so other ports can use it and thus, have > more sharing. We make heavily stylized uses, which could be wrapped into a > p

Re: Beyond Complex Register Management

2012-08-08 Thread DJ Delorie
> Gosh, we got one of those too, though, I don't know how much worse > your machine is than mine, in at all. In the RL78 case, it's basically a modern Z80 clone. It has eight 8-bit registers (er, four banks of those, one active at a time) which can be combined into four 16-bit registers, but for

Beyond Complex Register Management

2012-08-08 Thread Mike Stump
On Aug 8, 2012, at 8:38 AM, DJ Delorie wrote: > The RL78 devirtualization pass is *not* a reorg pass, it has to happen > after reload but before debug info is set up. The RL78 does not have > a consistent register set or addressing scheme, GCC cannot practically > support it. Gosh, we got one of