This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error in keil 7.06 a

1 open project HELLO
2 insert int e,b,c; after main
3 in project devce select extended linker
4 translate
5 debug and see that variable e ?????
what is it?
is it new version?

Parents
  • I did as you suggested and I receive the following compiler warnings:

    *** WARNING C280 IN LINE 24 OF HELLO.C: 'e': unreferenced local variable
    *** WARNING C280 IN LINE 24 OF HELLO.C: 'b': unreferenced local variable
    *** WARNING C280 IN LINE 24 OF HELLO.C: 'c': unreferenced local variable

    Since these variables are unreferenced and uninitialized the compiler is free to completely exclude them from the compilation.

    The reason you see results when you look at b and c is because B is the B register (used in MUL and DIV instructions) and C is the carry flag (from the PSW).

    Jon

Reply
  • I did as you suggested and I receive the following compiler warnings:

    *** WARNING C280 IN LINE 24 OF HELLO.C: 'e': unreferenced local variable
    *** WARNING C280 IN LINE 24 OF HELLO.C: 'b': unreferenced local variable
    *** WARNING C280 IN LINE 24 OF HELLO.C: 'c': unreferenced local variable

    Since these variables are unreferenced and uninitialized the compiler is free to completely exclude them from the compilation.

    The reason you see results when you look at b and c is because B is the B register (used in MUL and DIV instructions) and C is the carry flag (from the PSW).

    Jon

Children