-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 31.05.2014 13:38, Ardillas del Monte wrote: > Hi, > > I'm trying to find some way of compiling C code for the Z380, with > 32bit linear addressing. The Z380 is compatible with the Z80, so > any Z80 compiler could be a good start point. > > Unfortunately, LLVM backends for the Z80 haven't reached > production status. And SDCC seems focused in 8bit CPUs. > > But I was wondering whether SDCC has indeed some imposed design > limitation for not allowing 32bit pointers, or if there's no such > limitation. > > In other words, could the Z80 backend support 32bit pointers for > full Z380 support, or would that be an incompatible task with the > SDCC design and concept? > > Thanks! > > ardi
I guess the 32-pointers themselves wouldn't be that much work. Changes in the Z80 backend would be only in a few places; but the Z380 has more registers. Really using the upper 16 bits of the 32-bit registers (e.g. for long addition) would be hard to do though. If 32-bit addresing is all you need, extending the sdcc z80 port seems like the easiest way to go. But if you want efficient code generated, you probably need to write a new backend, and might want to have a look at llvm (http://llvm.org/) and firm (http://pp.ipd.kit.edu/firm/). Philipp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlOKyfsACgkQbtUV+xsoLprgkwCfYbqLBvshts31cE48Sl/8tcp1 HZsAoLUA/oHERqqSqt7MKCtMuZKSiDIH =n9mF -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user