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

Printf / Fprintf

Hello,

What happens when i call:
(Keil compiler)
Printf
fprintf(stdout...)
fprintf(stderr...)

Which functions are called for the low level write??

putc / _sys_write ???

What are the arguments, 8000 to 8002?

Does all 3 "printf" call same _sys_write ?

I have added:
#pragma import(__use_no_semihosting_swi)
(is it enough this line is in the retarget.c?)

It seems the only one of above calls _sys_write is fprintf(stderr...) and of cause a file..

Please, is there any place to read these information as well?

Kasper

Parents
  • Take a look at:

    REALVIEW LIBRARIES AND FLOATING POINT SUPPORT GUIDE BOOK.
    The C and C++ Libraries -> Building an application with the C library -> Using the library with an application.

    The C and C++ Libraries -> Tailoring the input/output functions.

    REALVIEW COMPILER USER'S GUIDE BOOK.
    Semihosting.

    These books comes with KEIL MDK

Reply
  • Take a look at:

    REALVIEW LIBRARIES AND FLOATING POINT SUPPORT GUIDE BOOK.
    The C and C++ Libraries -> Building an application with the C library -> Using the library with an application.

    The C and C++ Libraries -> Tailoring the input/output functions.

    REALVIEW COMPILER USER'S GUIDE BOOK.
    Semihosting.

    These books comes with KEIL MDK

Children
No data