Manpage of flatten
Section: Misc. Reference Manual Pages (l)
Updated: January 12, 2021
Return to Main Contents
- Script to combine multiple source files for RISC compiler
is a tool designed to generate a single compilable file for the Recoding Infrastructure for SystemC (RISC) compiler.
takes multiple source files from the user based on the include preprocessor directives in each file,
and outputs a single combined source file with the included files inserted in correct order.
also supports displaying the graph of the file inclusion as well as auto-detecting the main file.
For example, to flatten and view the inclusion structure of multiple source files of a given design,
use the following command:
flatten -i main.cc -o output.cc -g
displays the inclusion tree as text in the terminal with each included filename and their parents.
If no argument is provided, the
script will scan for a "main" file; if not found or multiple files that contain "main" are found,
the script will terminate and ask for manual input.
use this argument to print a brief message on the usage of the tool and quit
use this argument to print a list of included files
use this argument to print a graph (tree) of the dependencies
use this argument to auto-compile the flattened file using RISC
- -i [input]
use this argument to indicate the main file, no need to input multiple files
- -o [output]
use this argument to change the name of the output file; if omitted, this defaults to "Main_flat.cpp"
use this argument to turn on debug mode, display important internal data
is release version 0.6.3.
Yutong (Tom) Wang <firstname.lastname@example.org>
(c) 2021 CECS, University of California, Irvine
Open source BSD license terms apply.
This is an academic proof-of-concept prototype implementation,
not commercial-quality software.
- BUGS, LIMITATIONS
This document was created by
using the manual pages.
Time: 02:47:04 GMT, August 19, 2021