2010-06-19 13:21:02     Fortran on Blackfin

Document created by Aaronwu Employee on Sep 26, 2013
Version 1Show Document
  • View in full screen mode

2010-06-19 13:21:02     Fortran on Blackfin

Wojtek Skulski (UNITED STATES)

Message: 90467   

 

I am developing a new product for physics audience. It would be very nice if this board could be programmed in Fortran. I noted the recent thread by Matthias K about using the Fortran compiler. I want to explore this topic a bit more. Are there any manuals or notes available on programming Blackfin/uCLinux boards in Fortran, or in any other "decent" language for that matter (Pascal, Modula-2, Oberon)?

 

The requirements for my product are as follows: Blackfin BF561 running uCLinux on core A, and data processing on core B. The data processing is rather simple (digital filtering, pattern recognition, histogramming). Both the latency and the performance of core B should be close to the hardware limit. (The code will have to be locked in the cache, minimal L2 access to avoid core A/B competition). The data will be "automagically" transferred to the Blackfin chip using both PPIs and DMA.

 

I envision setting up the "framework" software using the C/C++ tools. On top of this framework there will be a "box" to be filled by the user with application-specific code. Ideally this code will be written in Fortran in order to cater to the research community's mindset. Other "decent" languages are an option, but Fortran would be preferred because of the target audience.

 

I searched the Wiki for the word Fortran. The promising subject popped up ":toolchain:compiler: Compiler Information - All languages (C/C++/Fortran/Java/etc…). Clicking on that item brings a message "This topic does not exist yet".

 

Could you please direct me to any documentation to start digging in? Thanks!

 

Wojtek

QuoteReplyEditDelete

 

 

2010-06-19 13:37:30     Re: Fortran on Blackfin

Mike Frysinger (UNITED STATES)

Message: 90468   

 

the gfortran documentation for Blackfin Linux is no different from the gfortran documentation for your host Linux

 

i.e. http://gcc.gnu.org/onlinedocs/

QuoteReplyEditDelete

 

 

2010-06-19 21:03:02     Re: Fortran on Blackfin

Robin Getz (UNITED STATES)

Message: 90473   

 

Wojtek:

 

From a Blackfin perspective - It is like Mike stated - with one addition - we only support fortran when it is running underneath uClibc - which means Linux. There is no bfin-elf-gfortran compiler (which means no fortran on bare metal core B).

 

The alternative - is to run our SMP like kernel.

 

-Robin

QuoteReplyEditDelete

 

 

2010-06-23 14:15:03     Re: Fortran on Blackfin

Wojtek Skulski (UNITED STATES)

Message: 90566   

 

Mike and Robin:

 

thank you for the feedback. In our case the bare metal core B is probably more important than user convenience. So we might be staying within the C environment for this. Concerning the SMP, it may be the option if it does not impact the interrupt latency of the core B. All this is under the assumption that my ideas hold water, that is that we can run Linux as a slow monitoring software on core A, while core B performs fast DSP and feeds core A with summary data. We will start researching this as soon as our BF561 boards get assembled. It is a part of a large R&D project for the next generation of astrophysics detectors. Lots of work ahead.

 

Thank you again. -- Wojtek

QuoteReplyEditDelete

Attachments

    Outcomes