cancel
Showing results for 
Search instead for 
Did you mean: 

GNU

klavdijo
Associate II
Posted on August 20, 2007 at 10:19

GNU

3 REPLIES 3
klavdijo
Associate II
Posted on August 20, 2007 at 09:34

Hello!

Can someone tell me why this code is not compiled:

Temp2 = 0x07 - BIT_counter;

Thanks

kleshov
Associate II
Posted on August 20, 2007 at 10:01

It depends on a lot of things. First of all, why do you think it is not compiled? Does the compiler give an error message? What does it say? Second, what do the declarations of the involved variables (Temp2, BIT_counter) look like?

klavdijo
Associate II
Posted on August 20, 2007 at 10:19

Hello!

static int8_t Temp2;

static int8_t BIT_counter;

At first I have variablles in function but then I make them global.

Function which use this sentence was made and tested in MS Visul studio 6.0 and it was working. Then I use HiTOP for emulation and if I look in dissasembly file I can't find this sentence. But the compiller dont give any message. It is the same as for gcc librarys that are not correctly linked.

Thanks!