This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Re: Specifying a target
- To: hiller at redhat dot com
- Subject: Re: Re: Specifying a target
- From: Michael_Rausch at aprilia dot it
- Date: Wed, 16 May 2001 10:42:51 +0200
- Cc: gcc-help at gcc dot gnu dot org
> > Is there any way to specify architecture/code generation directly from
> > C-source
> > code instead of giving command-line options such as -m2 or -m3?
> Not really. Is there any particular reason you couldn't just use a
> makefile anyway?
We need to use the floating point capabilities of SH7055 (Hitachi SH-2E
family).
GCC doesn't support this target, but it is possible to compile pieces of
code for floating-point with the -m3 option, then link them with the rest
of the code compiled with the -m2 option.
It works, but all the "floating-point code" has to be isolated in separate
source files (it's not such a great problem, in fact).
Michael