[cfe-dev] Re-targeting clang to a new architecture

Ned Gill thomas.gill at csr.com
Wed Apr 28 00:09:44 PDT 2010

Hi all.

I'm contemplating re-targeting clang to a new architecture.  Initially I'd  
like to just port the front end as a static analysis tool to use alongside  
our existing GCC based toolchain, but ultimately I'd like to write a code  
generator too.  Unfortunately my architecture has a couple of wrinkles  
that sometimes make life hard for compilers:

CHAR_BIT is 16 (i.e. the minimum addressable unit of memory is 16 bits)
It's a Harvard architecture with 16 bit data pointers and 24 bit function  

Does anyone have any thoughts on how difficult it would be to target clang  
to this sort of architecture - just as a front end (for now)?


p.s. I'm reading the group through gmane.org, in case that makes a  
difference to anyone


Apologies for any crummy corporate signature appended here:

More information about the cfe-dev mailing list