[Python-Dev] Re: python/dist/src/Objectsunicodeobject.c, 2.204,
ncoghlan at iinet.net.au
Sat Dec 20 04:09:48 EST 2003
Tim Peters wrote:
> [Hye-Shik Chang]
>>BTW, do we really support architectures with 9bits-sized char?
> Skip's idea of making config smarter about this is a good one, but instead
> of trying to "fix stuff" for a case that's probably never going to arise,
> and that can't really be tested anyway until it does, I'd add a block like
> this everywhere we know we're relying on 8-bit char:
> #ifdef HAS_FUNNY_SIZE_CHAR
> #error "The following code needs rework when a char isn't 8 bits"
> /* A comment explaining why the following code needs rework
> * when a char isn't 8 bits.
This would probably be appropriate for those TI DSP's I mentioned. While
they genuinely have a 16-bit char type, they're also intended for use as
co-processors, rather than as the main controller for an application.
That is, a more standard CPU should be used to handle the general
application programming, while the DSP is used for the serious number
crunching (that's what it is made for, after all).
Anyone who _thinks_ they want to run Python on the DSP core almost
certainly needs to have a long hard think about their system design.
Nick Coghlan | Brisbane, Australia
Email: ncoghlan at email.com | Mobile: +61 409 573 268
More information about the Python-Dev