IAR EWARM PRINTF/SCANF FORMATTER

本文介绍了一个链接器如何根据编译器提供的信息为printf和scanf等函数自动选择合适的格式化器。当编译信息缺失或不足时,如通过函数指针使用printf或对象文件过旧等情况,将默认使用完整格式化器。用户可以根据需要手动设置库选项来覆盖默认格式化器。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The linker automatically chooses an appropriate formatter for printf- and scanf-related function based on information from the compiler.

If that information is missing or insufficient, for example if printf is used through a function pointer, if the object file is old, etc,

then the automatic choice is the Full formatter.

In this case you might want to choose a formatter manually.

To override the default formatter for all the printf- and scanf-related functions, except for wprintf and wscanf variants,

you simply set the appropriate library options. This section describes the different options available.

 

 

When you set up your application project, you typically need to consider what printf and scanf formatting capabilities your application requires

If the provided formatters do not meet your requirements, you can customize the full formatters.

However, that means you must rebuild the runtime library.

The default behavior of the printf and scanf formatters are defined by configuration symbols in the file DLib_Defaults.h.

These configuration symbols determine what capabilities the function printf should have:

When you build a library, these configurations determine what capabilities the function scanf should have:

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值