ARM/THUMB Interworking in same file
Vincent Rubiolo
vincent.rubiolo@st.com
Wed Aug 6 13:07:00 GMT 2003
Hello,
If you need such a precise control over the processor state, I suggest you write
assembly to handle the job of switching instead of trying to rely on the compiler...
The question lying behind is then : why not writing two files and compile them
separately?
Cheers,
Vincent, puzzled
mckennad@esatclear.ie wrote:
> Hi All,
>
> Is it possible to have Thumb and Arm c Code in the same source file? i.e. is
> there a way to specifically identify a function as being compiled as an ARM
> Function, whereas another if compiled in Thumb?
> e.g. __attribute__((Arm))
>
> What I want to do is to have a startup file that will switch me into Thumb mode,
> write my main file in Thumb but occasionally would like to have a function in
> ARM mode.
>
> Any Ideas?
>
> Thanks,
> Dave Mc Kenna
>
>
>
>
> --
> http://www.iol.ie
>
> ------
> Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
>
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list