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]

Re: Need Fortran Cross-Compiler Solaris->m68020


Joel Sherrill wrote:

> Kai Ruottu wrote:
> > 
> > Rod <rod@tolosa.com> wrote:
> > > I've tried building the C/C++ compilers, then cross-compilers, with
> > > trouble, and never made it to the Fortran cross-compiler.
> > 
> >  Funny, I had no problems at all with producing a 'sparc-solaris2.7'
> > hosted and embedded 'm68k-elf' targeted cross-G77 (among the normal
> > C and C++ stuff) on my RedHat 7.1 build host (trying this just for a
> > fun...)
> 
> Did it actually build all the support libraries?  I haven't tried
> Fortran for embedded targets since 2.95 but some languages/targets
> don't build the language support libraries.

 Yes, all those 'm68k-elf/*/libf2c/libg2c.a's were built for
'm68000/m68020/m68040/m68060/m5200' additionally with the
default 'mcpu32' (set in my sources).

 Your "embedded targets since 2.95" maybe is the key, I used the
gcc-2.95.3 sources because I didn't see the new C++ things in gcc-3.x
giving any benefits in Fortran77. And I remembered the 'g77' being 
somehow 'frozen' since gcc-2.95.  And finally, building the 3.x
sources is not fun if not having a very quick machine, the resulted
GCC is much slower than the gcc-2.95.3 and that must be used to
compile the target libs.  Generally I don't know what C/F77 benefits
the gcc-3.x could bring for m68k... Besides those new 'features'
available only with patches, like the '-mstrict-align/-mno-strict-
align' and the '-mpcrel' support.

 Maybe there are serious problems now with the gcc-3.x and the
'frozen libf2c' ? sources...

 The last time I did something serious with Fortran77 was in 1986,
but I remember compiling something using GCC with 'f2c' and with
'g77' later and those compiled & linked things worked, on PC : 
DOS/Windows/Linux.

 But how well those compiled and linked F77-apps then run on an
embedded m68020-card is unclear for me, but at least with the
gcc-2.95.3 sources the 'm68k-elf-g77' + 'f771' + 'libg2c.a's
should be produced...

Cheers, Kai


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