This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi Vincent, Thanks for the reply. I am trying to avoid having to write any assembly except for my startup files. >The question lying behind is then : why not writing two files and >compile them separately? No reason, except the arm files in themselves will be very small, maybe 10-20 lines of C code, thus a whole individual file is a bit extreme. Cheers, Dave > >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 >> > > -- 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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |