EmbDev.net

Forum: ARM programming with GCC/GNU tools ARM THUMB interwork in GCC


Author: Girish Wabale (girish_wabale)
Posted on:

Rate this post
0 useful
not useful
Hello ,

Can I write  ARM and THUMB functions in same file in GCC .
what are the attributes for that....

Thanks and Regards

Girish Wabale

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
Girish Wabale wrote:

> Can I write  ARM and THUMB functions in same file in GCC .
> what are the attributes for that....

As far as I know this is not possible with gcc so far. A C source-file
can be compiled either in thumb- or in arm-mode. Split the source in
separate files and compile each one with the appropriate options.

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.