EnglishFrenchSpanish

OnWorks favicon

fcasplit - Online in the Cloud

Run fcasplit in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command fcasplit that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


fcasplit - tool to split source code into separate per-routine files

SYNOPSIS


fcasplit [ -f nmft ] [ -c nmcc ] [ -a nmas ] [-noh] [-log]
[ +fo incf ] [ +co incc ] [ +ao incs ]
[ -fo optf ] [ -co optc ] [ -ao opts ] file.ext

fcasplit file.ext [ fca_n ] [ optf [ optc [ opts
[ nmft [ nmcc [ nmas ]]]]]]

DESCRIPTION


fcasplit, used with a command line of either form shown above, splits file file.ext having
a mixture of FORTRAN / C / assembler routines into separate files n.f or n.c or n.s, "n"
being the name of each routine, creating at the same time a shell script file.shfca and a
Make file file.mkfca either of which can be used to compile all routines individually.
All new files are generated in the current directory, even if the original file.ext is in
a different location.

NOTE that the program does not work on source code written without having it in mind,
since fcasplit looks for special identifying lines in comments of the source code in the
original file, as noted below. It is able to operate, for instance, on source code output
by nypatchy.

Defaults are defined in fcasplit for the names by which the compilers are called in the
generated shell script and Makefile; with the -f, -c, -a options they could be changed.
In Debian GNU/Linux, these defaults are gcc for the C compiler, gfortran for the FORTRAN
compiler, and as for the assembler.

Defaults are also defined for the options with which they are called; with the -fo, -co,
-ao options they can be re-defined; with the +fo, +co, +ao options they can be
incremented. In Debian GNU/Linux, these defaults are "-c -g -O2" for the C compiler, "-c
-g -O2 -fno-automatic" for the FORTRAN compiler, and "" (i.e., no flags) for the
assembler.

To be backward compatible these options can also be specified by the positional parameters
after the file-name (as in the second form of the command shown above).

If the -noh option is given (or if the first parameter after the file-name is "fca_n")
the identifying header line of each routine is not written out. If the -log option is
given the name of each routine is printed on standard output.

FILE FORMAT


Each routine in the original file file.ext must start with an identifying line:
"CDECK ID>, " in cols. 1-12 for FORTRAN
"/*DECK ID>, " in cols. 1-12 for C
";DECK ID>, " in cols. 1-12 for assembler
"DECK ID>, " in cols. 2-12 or
"DECK ID>, " in cols. 3-12 for anything else
"name" in cols. 13-40 gives the name

In the last two cases, or if "name" contains an extension, the file created will be
"name" without extension .f, .c or .s added to it and without an entry into the script.

A trailing blank terminates the name, symbol . followed by blank also terminates, symbols
; < # ! all terminate, symbol */ also terminates.

Use fcasplit online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Image Downloader
    Image Downloader
    Crawl and download images using
    Selenium Using python3 and PyQt5.
    Supported Search Engine: Google, Bing,
    Baidu. Keywords input from the keyboard
    or input from ...
    Download Image Downloader
  • 2
    Eclipse Tomcat Plugin
    Eclipse Tomcat Plugin
    The Eclipse Tomcat Plugin provides
    simple integration of a tomcat servlet
    container for the development of java
    web applications. You can join us for
    discussio...
    Download Eclipse Tomcat Plugin
  • 3
    WebTorrent Desktop
    WebTorrent Desktop
    WebTorrent Desktop is for streaming
    torrents on Mac, Windows or Linux. It
    connects to both BitTorrent and
    WebTorrent peers. Now there's no
    need to wait for...
    Download WebTorrent Desktop
  • 4
    GenX
    GenX
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 5
    pspp4windows
    pspp4windows
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 6
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • More »

Linux commands

Ad