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

Ned Gill thomas.gill at csr.com
Wed Apr 28 08:03:32 PDT 2010


On Wed, 28 Apr 2010 15:50:16 +0100, Douglas Gregor <dgregor at apple.com>  
wrote:

>> 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 pointers.
>
> This came up on the list about 6 months ago, and the consensus was that  
> it would be fairly tricky to do, since the "8 bits per char/byte"  
> assumption pervades Clang and LLVM:
>
> 	http://lists.cs.uiuc.edu/pipermail/cfe-dev/2009-September/006349.html
>
> Since then, there has been some work to make Clang depend on the  
> target's character width rather than assuming it is 8 bits, so the  
> situation has improved.

Thanks Doug.  I guess my next step is to try it and see how far I get.

Any thoughts on the different sizes of pointers?


Ned.


-- 
 



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom



More information about the cfe-dev mailing list