Searching \ for 'PCB Compiler' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/pcbs.htm?key=pcb
Search entire site for: 'PCB Compiler'.

Truncated match.
PICList Thread
'PCB Compiler'
1998\11\23@143025 by marc mameaux

flavicon
face
Hi PIClisters,

I'm about to use the PCB C compiler and just found out that it doesn't
handle arrays of short and pointers to short. Would anyone here have any
ideas to over come this problem?

Does the Hi-Tech C compiler handle them?

Any information regarding programming PIC16C5x for 16 bits &/or 18 bits
instructions would be appreciated.

cheers
marc

1998\11\24@012524 by Clyde Smith-Stubbs

flavicon
face
On Mon, Nov 23, 1998 at 03:53:25PM +0000, marc mameaux wrote:

> I'm about to use the PCB C compiler and just found out that it doesn't
> handle arrays of short and pointers to short. Would anyone here have any
> ideas to over come this problem?
>
> Does the Hi-Tech C compiler handle them?

Yes, certainly does. Longs (32 bits) too.

Regards, Clyde

--
Clyde Smith-Stubbs               |            HI-TECH Software
Email: spam_OUTclydeTakeThisOuTspamhtsoft.com          |          Phone            Fax
WWW:   http://www.htsoft.com/    | USA: (408) 490 2885  (408) 490 2885
PGP:   finger .....clydeKILLspamspam@spam@htsoft.com   | AUS: +61 7 3354 2411 +61 7 3354 2422
---------------------------------------------------------------------------
HI-TECH C: compiling the real world.

1998\11\24@024307 by Dr. Imre Bartfai

flavicon
face
Hi,

you should keep in mind, that "short" means bit variable in PCB,
"int" means 8-bit variable, and "long" is 16-bit. It is a bit confusing
if you programmed C previously. Do you really intend to address bits?

Imre

On Mon, 23 Nov 1998, marc mameaux wrote:

{Quote hidden}

1998\11\24@025934 by Gordon Couger

flavicon
face
Here is what I use for bit twiddling when the compiler won't to
bit fields. I think I compared it to the code that INTROL made
for bit fields and it was similar. It works on every thing I have
tried it on but I haven't tried it on a PIC.

#define   checkbit(var,bit)  (var & (0x01 << (bit)))
#define   setbit(var,bit)    (var |= (0x01 << (bit)))
#define   clrbit(var,bit)    (var &= (~(0x01 << (bit))))

Gordon

Gordon Couger gcougerspamKILLspamcouger.com
Owner PRAG-L PRactical AGriculture List  http://www.couger.com/prag-l
Stillwater, OK        405 624-2855   GMT -6:00



{Original Message removed}

1998\11\24@094637 by Larry Payne

flavicon
face
>On Mon, Nov 23, 1998 at 03:53:25PM +0000, marc mameaux wrote:
>
>> I'm about to use the PCB C compiler and just found out that it doesn't
>> handle arrays of short and pointers to short. Would anyone here have any
>> ideas to over come this problem?
>>
>> Does the Hi-Tech C compiler handle them?
>
>Yes, certainly does. Longs (32 bits) too.
>
>Regards, Clyde
>


The PCB compiler uses 'short' to reference a bit. It doesn't support arrays
of bits
or pointers to bits. Unfortunately, neither does Hi-Tech C.

regards,

-larry-

1998\11\24@105926 by Ivan Cenov

flavicon
face
I tried demo version of Hi-Tech C compiler
and pointers too.
This compiler has pointers to any type, not only to char
There is pointers to RAM and to ROM
(int *)  is pointer to ram
(const int *) is pointer to rom
pointer arithmetics work as expected (K&R)

you may compile to .as file and the result when are uncertain
what really compiles

BTW Hi-Tech C makes good optimizations of output code

ivan cenov

{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...