This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Supporting multiple instructions sets within a single machine description


> On Wed, 12 Mar 2003, Jon Beniston wrote:
> 
> > 
> > I was wondering what support there is within GCC for supporting multiple
> > instruction sets within a single machine description. E.g. ARM & Thumb
>  or MIPS32/MIPS16.
> 
> This is already done. USTL!

Don't you mean UTSL!

> 
> > Is it possible for GCC to compile to different
> > instructions sets at a finer granularity than a single compilation unit?
> > i.e. Can I get GCC to compile one function in Thumb and another using
> > the full ARM instruction set. 
> 
> No. It's set using command-line options.
> 

At present.  I'd like to see an attribute that could change compilation of 
individual functions... but it's not easy, given the current structure of 
the compiler.

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]