[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re:Bit variables in C
From: Ulrich Dziergwa ####@####.#### Date: 16 Nov 2000 06:30:51 -0000 Message-Id: <3A137FAE.C0E3F8A1@web.de> > 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 Hi, I choose CCS's PCM as C compiler for my PIC projects, because it supports bit variables. To set a port bit uses one assembler instruction, a compiler who makes more out of this is useless for fast applications. I think, C code for a PIC is never portable to any other architecture. Ulrich | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |