iar中的scanf和printf

时间:2022-01-10 19:57:39
   默认情况下,iar中的scanf和printf默认都是最小模式,只有最简单功能,稍复杂些就无法正常使用。可以通过general options->Library options切换模式付不同模式下代码大小 tiny模式: SEGMENT              SPACE    START ADDRESS   END ADDRESS     SIZE  TYPE  ALIGN=======              =====    =============   ===========     ====  ====  =====ICODE                              00000000 - 00000133         134   rel    2CODE                               00000134 - 00002B57        2A24   rel    2INITTAB                            00002B58 - 00002B63           C   rel    2DATA_ID                                 00002B64                     dse    0DATA_C                             00002B64 - 00002BBF          5C   rel    2DATA_I                                  00200000                     dse    0DATA_Z                             00200000 - 002003AF         3B0   rel    2HEAP                               002003B0 - 002043AF        4000   rel    2INTRAMEND_REMAP                         00210000                     rel    2                 ****************************************                *                                      *                *        END OF CROSS REFERENCE        *                *                                      *                ****************************************  11 096 bytes of CODE  memory 17 328 bytes of DATA  memory    104 bytes of CONST memory full模式: SEGMENT              SPACE    START ADDRESS   END ADDRESS     SIZE  TYPE  ALIGN=======              =====    =============   ===========     ====  ====  =====ICODE                              00000000 - 00000133         134   rel    2CODE                               00000134 - 00003A43        3910   rel    2INITTAB                            00003A44 - 00003A4F           C   rel    2DATA_ID                                 00003A50                     dse    0DATA_C                             00003A50 - 00003AE3          94   rel    2DATA_I                                  00200000                     dse    0DATA_Z                             00200000 - 002003AF         3B0   rel    2HEAP                               002003B0 - 002043AF        4000   rel    2INTRAMEND_REMAP                         00210000                     rel    2                 ****************************************                *                                      *                *        END OF CROSS REFERENCE        *                *                                      *                ****************************************  14 916 bytes of CODE  memory 17 328 bytes of DATA  memory    160 bytes of CONST memory