Machine-translated by Google. Questions are authored in English.
Top

Discussion

Calling printf in a small embedded program is often avoided because it

  • A.requires floating point support in the processor
  • B.pulls in a large formatting library and may use the heap
  • C.cannot write to a serial port without an operating system
  • D.is not provided by embedded C libraries at all

Answer: B

The full implementation can add tens of kilobytes and an unbounded stack requirement, and some versions allocate. Cut-down variants without floating point support, or a hand-written formatter, are what a constrained target uses.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.