Skip to main content
Visitor II
August 20, 2007
Question

GNU

  • August 20, 2007
  • 3 replies
  • 734 views
Posted on August 20, 2007 at 10:19

GNU

    This topic has been closed for replies.

    3 replies

    klavdijoAuthor
    Visitor II
    August 20, 2007
    Posted on August 20, 2007 at 09:34

    Hello!

    Can someone tell me why this code is not compiled:

    Temp2 = 0x07 - BIT_counter;

    Thanks

    Visitor II
    August 20, 2007
    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?

    klavdijoAuthor
    Visitor II
    August 20, 2007
    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!