gnupic: Bit variables in C


Previous by date: 15 Nov 2000 13:23:16 -0000 Re: Bit variables in C, Scott Dattalo
Next by date: 15 Nov 2000 13:23:16 -0000 Re: Bit variables in C, Scott Dattalo
Previous in thread: 15 Nov 2000 13:23:16 -0000 Re: Bit variables in C, Scott Dattalo
Next in thread: 15 Nov 2000 13:23:16 -0000 Re: Bit variables in C, Scott Dattalo

Subject: Re: Bit variables in C
From: "David Kott" ####@####.####
Date: 15 Nov 2000 13:23:16 -0000
Message-Id: <035a01c04f07$a1ee7aa0$810000c0@dkott>

>
> It's not part of ANSI, but SDCC has support for a `bit' type. This makes
sense
> if your target MCU is an 8051 (because of the bit instructions). However,
how
> useful is it for the PIC? I'd personally stay away from it since it is not
> portable. OTOH, I'm probably going to keep it in since it's already part
of
> SDCC. Any opinions?
>
> Scott
>

I really think it would be nice to have bit sized variables supported by the
compiler.
Perhaps offering a -pedantic or -ansi flag to complain/warn about non-ANSI
code?
I use CCS's PCM, and a quick review of some of the projects I have done
shows that I use bit sized variables extensively.

0x02 cents.

-d



Previous by date: 15 Nov 2000 13:23:16 -0000 Re: Bit variables in C, Scott Dattalo
Next by date: 15 Nov 2000 13:23:16 -0000 Re: Bit variables in C, Scott Dattalo
Previous in thread: 15 Nov 2000 13:23:16 -0000 Re: Bit variables in C, Scott Dattalo
Next in thread: 15 Nov 2000 13:23:16 -0000 Re: Bit variables in C, Scott Dattalo


Powered by ezmlm-browse 0.20.