We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
This is a question about reentrant functions in RTX51 Tiny System. AS follows articles I found in http://www.keil.com/support/man/docs/tr51/tr51_reentrant.htm: " You should disable Round-Robin Task Switching if you wish to invoke reentrant or non-reentrant function from more than one task or interrupt. "
If I want to invoke either reentrant functions or non-reentrant functions in RTX51 Tiny system, and they will be called in one more tasks, I should DISABLE Round-Robin Task Switching in CONF_TNY.A51.
Is it right?
Another question is that: addition, subtraction, multiplication, division in C51 library, are they all reentrant functions? Any I should be careful when I use them in one more tasks of RTX51 Tiny system?
In test1 the variables are not used (the program does notthing useful) and therefore the optimizer does not analyse variable life-times which results in un-optimized code.
You really need a program that does something with the variables that you define.
Thank you, I understand that you said, but I don't know why warning message showing "MULTIPLE CALL TO SEGMENT"?
Because there are variables unused and make optimizer can't do optimal code, so cause this warning message?
So, if it was true, the message really makes me confused.
This is why we have a support knowledgebase that you can search:
"MULTIPLE CALL TO SEGMENT"
brings you to:
http://www.keil.com/support/docs/2042.htm