According to documentation RealView Compilation Tools Compiler User's Guide (version 3.1) Compound literals
int y[] = (int []) {1, 2, 3};
--c90 mode
warning #520-D initialization with "(...)" expected for aggregated object error #70 incomplate type is not allowed error #29 expected an expression
--c99 mode
warning #520-D initialization with "(...)" expected for aggregated object error #144 a value of type "int *" cannot be used to initialize an entity of type "int"
it must be compiled ok, but it is not. What's wrong?
ARM C/C++ Compiler 4.1 Build 894
I have some problem with compiler directive --info=totals
1)when i use it in cmd.exe window it's work fine
c:\>cd keil450 c:\Keil450>cd arm c:\Keil450\ARM>cd bin40
c:\Keil450\ARM\BIN40>armcc -c --cpu Cortex-M3 --info=totals c:\src.c
Code (inc. data) RO Data RW Data ZI Data Debug File Name
18 0 0 0 0 84 src.o
c:\Keil450\ARM\BIN40>
2) But if i try to use it with IDE it's not working Project Options -> c/c++ -> Misc Controls: --info=totals Rebuild all
Build target 'Osilogreph Test' compiling system_stm32f10x.c... compiling main.c... compiling stm32f10x_rcc.c... compiling stm32f10x_flash.c... compiling stm32f10x_gpio.c... compiling stm32f10x_tim.c... compiling misc.c... linking... Program Size: Code=2080 RO-data=320 RW-data=44 ZI-data=1636 "OSCTest.axf" - 0 Error(s), 0 Warning(s).
But where is code metrics ??? maby its don't work with Windows 7 64 bit version