Need help with the options

Asked by Prasad NR

Please let me know the equivalent gcc arm options for the following commands.
I am using the tools from linux-x86/toolchain/arm-eabi-4.4.3/bin for android JB4.1.

armcc -Otime --enum_is_int --forceinline
armlink –inline --scatter=xyz.scl --map --verbose --info=inputs,common,totals --symbols --list=pqr.map

Thanks in advance,
Prasad.

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Terry Guo (terry.guo) said :
#1

Hi Prasad,

I thinks they have below relationships:

the -Otime roughly equals to gcc -O2 or -O3.

the --enum_is_int equals to gcc -fno-short-enum.

the --forceinline roughly equals to gcc -finline-functions which is enabled by default for -O3.

the --scatter=xyz.scl is used to specify the linker script for armlink. In GNU tool chain, we use "arm-none-eabi-gcc -T xyz.ld ..." or "arm-none-eabi-ld -T xyz.ld ...".

the --map is used to generate memory map. In GNU tool chain, we use "arm-none-eabi-gcc -Wl,-Map=abc.map ...." or "arm-none-eabi-ld -Map=abc.map ..."

the "--map --verbose --info=inputs,common,totals --symbols" are used to print the link-stage auxiliary information. The --list=pqr.map is then used to redirect all those info to file pqr.map. Those info can help you understand the final image better. I don't think they have exactly equivalents in GNU tool chain.

For the detailed information about above options, I suggest you to check their manuals at:
http://infocenter.arm.com/help/topic/com.arm.doc.dui0491i/Cihbejbb.html
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0493i/index.html
http://gcc.gnu.org/onlinedocs/gcc-4.7.2/gcc/

Can you help with this problem?

Provide an answer of your own, or ask Prasad NR for more information if necessary.

To post a message you must log in.