Building GCC for Fortran too..

Building GCC for Fortran too..

Postby madtom1999 » Tue Jul 30, 2013 3:11 pm

The toolchain is currently built from the SDK directory using build-toolchain.sh
Any tips on updating that to build fortran as well?
madtom1999
 
Posts: 16
Joined: Mon Dec 17, 2012 3:25 am

Re: Building GCC for Fortran too..

Postby ysapir » Tue Jul 30, 2013 3:26 pm

Better ask in the SDK forum.
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: Building GCC for Fortran too..

Postby 9600 » Tue Jul 30, 2013 3:26 pm

madtom1999 wrote:The toolchain is currently built from the SDK directory using build-toolchain.sh
Any tips on updating that to build fortran as well?


I think you would just add fortran to the list of languages specified with "--enable-languages" (line 156).

Curious as to whether you have a particular application in mind?

Cheers,

Andrew
Andrew Back (a.k.a. 9600 / carrierdetect)
User avatar
9600
 
Posts: 997
Joined: Mon Dec 17, 2012 3:25 am

Re: Building GCC for Fortran too..

Postby madtom1999 » Wed Jul 31, 2013 7:37 am

Cheers - its line 139 in mine - I gitted yesterday!
I apologise - I'm using new tools and didnt find that by my own search. These modern new fangled computers....
madtom1999
 
Posts: 16
Joined: Mon Dec 17, 2012 3:25 am

Re: Building GCC for Fortran too..

Postby theover » Wed Jul 31, 2013 11:13 am

I did't yet built anything, because on my general use machine I needed to compile 3 math libraries and I didn't feel like that yet, but I'd like to express my interest in Fortran, too, but for a different purpose: Maxima.

I hope XMaxima can be put on the ARM, and would be interested in running Fortran (which can be created from Maxima's symbolic formulas) compiled parallel programs on the Epiphany, for instance for rendering Audio waves.

T.V.
theover
 
Posts: 174
Joined: Mon Dec 17, 2012 4:50 pm

Re: Building GCC for Fortran too..

Postby ysapir » Wed Jul 31, 2013 11:31 am

One note, though - if using the e-lib in your Epiphany code, remember that the library is a C library and thus has C linkage. You may need to tell FORTRAN to take care of that in your program's header files.
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: Building GCC for Fortran too..

Postby dar » Sat Dec 14, 2013 12:43 pm

Just a comment on Fortran. You can target Epiphany with the STDCL API which has Fortran bindings. At present your kernels would still need to be written in C, but at least integration with your host code would be simplified this way.
dar
 
Posts: 90
Joined: Mon Dec 17, 2012 3:26 am


Return to Fortran

Who is online

Users browsing this forum: No registered users and 0 guests

cron