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

scope of label

Is a label local or global? For instance, two functions aa1() and aa2() are in file aa. A label L is placed in aa1(). Another function bb() is located in bb file. Which function(s) can access the label L? Thank you for aswering my question.

chao.

Parents
  • Stefan,

    Thank you very much. There is nothing wrong with your approach. Actually there are some disadvantages on the fixed return address approach and I am aware of that. My plan 2 is exactly what you pros (in both threads) suggested: place a flag in the ISR and let main() do the display thing.

    I try to evaluate the cons and pros on both approaches, fixed return address (if it is doable) and flag in ISR. It seems I have to go for the flag approach (don't say I didn't try). There is no perfect solution for this project based my limited knowledge. I have to give up something to gain something. It all depends on what is more important or significant to what. After all, perfection is not a solution at all.

    chao.

Reply
  • Stefan,

    Thank you very much. There is nothing wrong with your approach. Actually there are some disadvantages on the fixed return address approach and I am aware of that. My plan 2 is exactly what you pros (in both threads) suggested: place a flag in the ISR and let main() do the display thing.

    I try to evaluate the cons and pros on both approaches, fixed return address (if it is doable) and flag in ISR. It seems I have to go for the flag approach (don't say I didn't try). There is no perfect solution for this project based my limited knowledge. I have to give up something to gain something. It all depends on what is more important or significant to what. After all, perfection is not a solution at all.

    chao.

Children
No data