if i am not using position independent options while using rtx will it make my application thread unsafe?
i am asking because standard library functions are by default non re entrant
because standard library functions are by default non re entrant
And what do you think does that have to do with position-independent code? Or RTOS, for that matter?
excuse me if i asked something wrong!! i am new to this one. all i wanted to know is if i make my code position-independent will it make standard library functions re-entrant or not?
don't confuse when i say "my code" or "application" actually i am talking about R/W section
By making standard library functions re-entrant i can use them in RTOS safely. So if library functions are by default non-re-entrant how can i make them re-entrant?
And what other things that i have to consider when i use RTX?
You can't make non-reentrant library functions whatever you do.
Making them movable doesn't change their reentrant capabilities.
So when calling a non-reentrant function, you must make sure that no other thread tries to perform other calls at the same time. And a function in a library may call other functions in the library, so even two different function calls may be forbidden to call concurrently because they call a common, non-reentrant function.