EmbDev.net

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


von Girish W. (girish_wabale)


Rate this post
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

von Martin Thomas (Guest)


Rate this post
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.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.