This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PDP10 support


Lars Brinkhoff <lars@nocrew.org> writes:
>
>It would also be interesting to hear from the DSP folks.

Okay here is a _personal_ view as someone that has tried to ports 
to various TI DSPs:

Weird addresses would have been useful for one of the ports
(actually thing was more of a micro-controller than a DSP).

Older C2X DSPs, and modern C5X which are backward compatible are 
16-bit words only. As such addressing bytes was just not possible - 
packing bytes means reading 16 bits and/shift/or and write 16 bits.

C3X/C4X are basically 32-bit with "some" support for messing with bytes
they also have non-IEEE 40-bit float.

C6X is byte addressed. 
C8X is byte addressed.

Most of the problems with DSPs were not the format of the addressing,
but:

 -  opcode squeezing which meant that which set of index registers
    you could use depended on choice of base registers etc.
    Reload has no support for such stuff, so you end up using a 
    subset of registers.
 -  Register allocation - GCC likes to keep a pseudo in one hard register,
    but if you multiply it and then use as an index it has to move.
    So you need to split into multiple pseudos then stop GCC collapsing
    them back into one.
 -  the lack of hardware interlocks (exposed pipeline) meaning need 
    to insert NOPs for loads and other multi-cycle ops - as well as branches. 
 -  VLIW scheduling. (Super scalar without harware interlocks.)
    Also register allocation which depends on which "unit" operation
    is scheduled for.  
 -  Fussy details like HI*HI => SI multiply is highly optimal 
    so shift schemes need to be disabled - except when used 
    for address generation.
 -  Figuring out what RTL "combine" would come up with for 
    expressions that mapped on to DSPish things like MPY+ADD+SHIFT 
    so that insn patterns that matched could be written



-- 
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]