EmbDev.net

Forum: ARM programming with GCC/GNU tools Option to generate '.asm' for '.c' files


Author: Vinit Bidkar (vinitbidkar)
Posted on:

Rate this post
0 useful
not useful
Environment details:

make:                3.18
binutils:            2.18
arm-elf-gcc:         4.2.2
newlib:              1.16.0

Question: What is the option to be passed to the compiler to make it
generate the '.asm' for the files he compiles?

Author: Vinit Bidkar (vinitbidkar)
Posted on:

Rate this post
0 useful
not useful
Vinit Bidkar wrote:
> Environment details:
>
> make:                3.18
> binutils:            2.18
> arm-elf-gcc:         4.2.2
> newlib:              1.16.0
>
> Question: What is the option to be passed to the compiler to make it
> generate the '.asm' for the files he compiles?

I have found the answer to my question. Its -S for generating the .s
files using      arm-elf-gcc

But this is a raw format and no symbols are present in the file.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.