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

Douglas Gregor dgregor at apple.com
Wed Apr 28 08:05:57 PDT 2010

On Apr 28, 2010, at 8:03 AM, Ned Gill wrote:

> 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?

Those won't be a problem; Clang already handles different pointer sizes.

	- Doug

More information about the cfe-dev mailing list