This is the mail archive of the gcc-help@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]

Re: Re: Specifying a target




> > 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



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