Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: local/temporary labels in gcc inline assembly

Author: Robert Hyatt

Date: 20:06:33 12/09/02

Go up one level in this thread


On December 09, 2002 at 20:58:00, Gareth McCaughan wrote:

>On December 09, 2002 at 17:17:53, Robert Hyatt wrote:
>
>> Unfortunately C99 is not particularly well-supported yet.  The previous C
>> standard left a _lot_ of holes.  Is char signed or unsigned by default?
>> Neither.  Which is stupid.
>> Is long 16 or 32 or 64 bits?  Any of the above depending on the machine.
>> Do bit fields start right-justified or left-justified?  Either.
>
>|long| can't be 16 bits. C89 says that longs have to be at least
>32 bits wide.

A long time back I had a C compiler from Zortech that did this.  It was
written for a z80, and a long was 16 bits.  Didn't cause any problems until
I moved the program to another machine and started debugging that mess...



> (Well, actually I think it specifies them in terms
>of what range of numbers they have to be able to represent, but
>it's the same thing in practice.)
>
>--
>g



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.