stm32f10x_gpio.c
iccarm.exe E:\Workspace\STM32Player\src\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c -D STM32F10X_HD -D
USE_STDPERIPH_DRIVER -lcN E:\Workspace\STM32Player\Debug\List\ -lb E:\Workspace\STM32Player\Debug\List\ -o E:\Workspace\
STM32Player\Debug\Obj\ --debug --endian=little --cpu=Cortex-M3 -e --fpu=None --dlib_config C:\Program Files\IAR Systems\Embedded Workbench 5.4\
arm\INC\DLib_Config_Normal.h -I E:\Workspace\STM32Player\src\usr\ -I E:\Workspace\STM32Player\src\Libraries\STM32F10x_StdPeriph_Driver\inc\
-I E:\Workspace\STM32Player\src\Libraries\CMSIS\Core\CM3\ -I C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\INC\ -Ohz
IAR ANSI C/C++ Compiler V5.30.0.51174/W32 for ARM
Copyright 1999-2009 IAR Systems AB.
614 bytes of CODE memory
Errors: none
Warnings: none
stm32f10x_gpio.c
iccarm.exe E:\Workspace\STM32F\STMINI_HELLO\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c -D
USE_STDPERIPH_DRIVER -D STM32F10X_HD -lcN E:\Workspace\STM32F\STMINI_HELLO\Debug\List\ -lb E:\
Workspace\STM32F\STMINI_HELLO\Debug\List\ -o E:\Workspace\STM32F\STMINI_HELLO\Debug\Obj\ --debug
--endian=little --cpu=Cortex-M3 -e --fpu=None --dlib_config C:\Program Files\IAR Systems\Embedded Workbench 5.4\arm\
INC\DLib_Config_Normal.h -I E:\Workspace\STM32F\STMINI_HELLO\ -I E:\Workspace\STM32F\STMINI_HELLO\
Libraries\STM32F10x_StdPeriph_Driver\inc\ -I E:\Workspace\STM32F\STMINI_HELLO\Libraries\CMSIS\Core\CM3\ -I C:\
Program Files\IAR Systems\Embedded Workbench 5.4\arm\INC\ -Ohz
IAR ANSI C/C++ Compiler V5.30.0.51174/W32 for ARM
Copyright 1999-2009 IAR Systems AB.
2 206 bytes of CODE memory
92 bytes of CONST memory
Errors: none
Warnings: none
在两个项目中,编译相同文件,得到的代码尺寸却大不一样。仔细比较了上面两个的编译选项,没有发现不一致的地方。这是怎么回事呢? |