Specifying a target

Michael_Rausch@aprilia.it Michael_Rausch@aprilia.it
Wed May 16 01:47:00 GMT 2001


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




More information about the Gcc-help mailing list