In this (size=3.7Mbytes, duration=7m44s) example a JPEG process network is flattened. The process network is specified using the YAPI syntax. First, the input hierarchical process network is extracted from sources, and shown graphically. Then, the flatting directives are provided. After, transformation the resulting flattened process network is shown graphically. This demo demonstrates flatting of hierarchical networks, often needed for performance reasons when going towards implementation. |
Commands issued during this demo: |
|
---|---|
> pwd | show current path |
> echo $TRIPLEMROOT | show environment variable TRIPLEMROOT is defined in current shell |
> echo $MPC | show environment variable MPC is defined in current shell |
> echo $YAPIROOT | show environment variable YAPIROOT is defined in current shell |
> ls dottyview.dot | show file dottyview.dot does not exist |
> ls M* | list all files starting with capital M, and open Makefile-ScottySetup |
> e Makefile-ScottySetup | edit toplevel Makefile |
comment-out MPC since it is a well defined environment variable | |
check if CPP_INCLUDES path for YAPI is well defined | |
check if APISPECIFICATION is well defined for example at hand | |
use predefined mapping file to remove all units not instantiated | |
provide symbol table file to scotty to speed up the parsing process | |
provide flag to generate dotty output | |
> make -f Makefile-ScottySetup | create the required Makefile to execute the scotty tool |
> make -f Makefile-Scotty | execute the scotty tool via this generated Makefile |
> ls dottyview.dot | show this file has been created, open file, compile text file into graphical output and show the hierarchical process network |
> rm dottyview.* | remove all dotty related files |
> ls M* | list all files starting with capital M, and open Makefile-ScottySetup |
use predefined mapping file to flatten the hierarchical process network | |
> make -f Makefile-ScottySetup | create the required Makefile to execute the scotty tool |
> make -f Makefile-Scotty | execute the scotty tool via this generated Makefile |
> ls dottyview.dot | show this file has been created, open file, compile text file into graphical output and show the flattened process network |
> ls $TRIPLEMROOT/share/mapping/ | show content of directory |
> cat $TRIPLEMROOT/share/mapping/noinst.dat | show (used) content of predefined mapping file |
> cat $TRIPLEMROOT/share/mapping/flatten.dat | show (used) content of predefined mapping file |
> The End | end of demo |