Tool/software: TI C/C++ Compiler
hello, printing to the console does not occur immediately when stepping beyond printf. At full execution speed, items print to the console.
The code is the same, Why is the behavior difference
thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
JW,
Are talking about calling printf or System_printf? If it is System_printf, take a look at this FAQ: https://e2e.ti.com/support/processors/f/791/t/883775
Todd
AFAICT - I have not looked at the source - the System stdio calls go strictly by the number of characters in the buffer to instigate an automatic flush. '\n' has no effect. I am sure that this is implementation dependent, especially since this is a non-hosted environment.
jw
The whole point of the SysMin provider is to minimize real-time impact on the system while still providing a "printf" like functionality. The '\n' is written into the internal buffer and can be seen in ROV. We realized some people would still what the data to come out the console, so we added that functionality into SysMin's flush command.
Remember also that the System_printf functionality is "printf"-like...not exact. If we wanted exact, we would have provided a new implementation of printf.
Todd