[bitc-dev] (partially fixed) character emission

David Hopwood david.nospam.hopwood at blueyonder.co.uk
Fri May 19 00:56:56 EDT 2006


Jonathan S. Shapiro wrote:
> David:
> 
> I've just put (I hope) proper character encoding into the C generator,
> but I didn't deal with the EBCDIC issues. I also haven't yet looked at
> the string emission issue.
> 
> Concerning EBCDIC, I went and looked at some code point comparison
> charts. The problem appears to go far beyond '@' and '$'. There is a
> much broader problem, which is that the code points for letters in
> general do not match up.

Remember the setup from my previous post:

  Suppose that we are compiling the BitC compiler on platform P,
  running it on platform Q, compiling the output C source on platform R,
  and running that on platform S. A "platform" here implies an encoding.

If Q and R use the same encoding, and S uses a UTF-8-compatible encoding,
there is no problem.

Someone who is doing a tricky cross-compilation might have might have to
manually transcode the C source in order to simulate a C compiler that
accepts the right encoding. Don't worry about that; it isn't your problem.

-- 
David Hopwood <david.nospam.hopwood at blueyonder.co.uk>




More information about the bitc-dev mailing list