Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
By default serial port is the standard output device,how to change it to a controller Port0
Isn't that in the manual?
http://www.keil.com/support/man/docs/c51/c51_lib_stream.htm
It even tells you where to find the source code!