|
FAUST compiler
0.9.9.6b8
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <assert.h>#include <limits.h>#include <unistd.h>#include <sys/time.h>#include "libgen.h"#include "compatibility.hh"#include "signals.hh"#include "sigtype.hh"#include "sigtyperules.hh"#include "sigprint.hh"#include "simplify.hh"#include "privatise.hh"#include "compile_scal.hh"#include "compile_vect.hh"#include "compile_sched.hh"#include "propagate.hh"#include "errormsg.hh"#include "ppbox.hh"#include "enrobage.hh"#include "eval.hh"#include "description.hh"#include "floats.hh"#include "doc.hh"#include <map>#include <string>#include <vector>#include <list>#include <iostream>#include <fstream>#include <sstream>#include "sourcereader.hh"#include "schema.h"#include "drawschema.hh"#include "timing.hh"
Go to the source code of this file.
Macros | |
| #define | FAUSTVERSION "0.9.67" |
Functions | |
| int | yyparse () |
| static bool | isCmd (const char *cmd, const char *kw1) |
| static bool | isCmd (const char *cmd, const char *kw1, const char *kw2) |
| string | makeDrawPath () |
| static string | makeDrawPathNoExt () |
| bool | process_cmdline (int argc, char *argv[]) |
| void | printversion () |
| void | printhelp () |
| void | printheader (ostream &dst) |
| static string | fxname (const string &filename) |
| transform a filename "faust/example/noise.dsp" into the corresponding fx name "noise" More... | |
| static void | initFaustDirectories () |
| int | main (int argc, char *argv[]) |
| #define FAUSTVERSION "0.9.67" |
Definition at line 21 of file main.cpp.
Referenced by main(), printheader(), and printversion().
|
static |
transform a filename "faust/example/noise.dsp" into the corresponding fx name "noise"
Definition at line 541 of file main.cpp.
Referenced by initFaustDirectories().

|
static |
Definition at line 559 of file main.cpp.
References filedirname(), fxname(), gDocName, getFaustPathname(), gFaustDirectory, gFaustSuperDirectory, gFaustSuperSuperDirectory, gInputFiles, gMasterDirectory, gMasterDocument, and gMasterName.
Referenced by main().


|
static |
Definition at line 167 of file main.cpp.
Referenced by process_cmdline().

|
static |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 582 of file main.cpp.
References Description::author(), boxPropagateSig(), Description::className(), Compiler::compileMultiSignal(), cons(), Description::copyright(), drawSchema(), endTiming(), evalprocess(), SourceReader::expandlist(), FAUSTVERSION, gArchFile, gClassName, gDetailsSwitch, gDrawPSSwitch, gDrawSVGSwitch, gErrorCount, getBoxType(), Compiler::getClass(), Compiler::getDescription(), gExpandedDefList, gExportDSP, gGraphSwitch, gHelpSwitch, gInputFiles, gLatexDocSwitch, gMasterDocument, gMetaDataSet, gOutputDir, gOutputFile, gPrintDocSwitch, gPrintFileListSwitch, gPrintXMLSwitch, gReader, gResult2, gSchedulerSwitch, gTimeout, gVectorSwitch, gVersionSwitch, importFile(), initFaustDirectories(), Description::inputs(), Klass::inputs(), Description::license(), SourceReader::listSrcFiles(), makeDrawPath(), makeDrawPathNoExt(), makeSigInputList(), Description::name(), nil, open_arch_stream(), Description::outputs(), Klass::outputs(), Description::print(), Klass::printAdditionalCode(), printDoc(), printfloatdef(), Klass::printGraphDotFormat(), printheader(), printhelp(), Klass::printIncludeFile(), Klass::printLibrary(), Klass::println(), printSignal(), printversion(), process_cmdline(), Compiler::setDescription(), startTiming(), streamCopy(), streamCopyUntil(), streamCopyUntilEnd(), subst(), tree(), tree2str(), Description::version(), and yyerr.

| string makeDrawPath | ( | ) |
Definition at line 177 of file main.cpp.
References gMasterDocument, gMasterName, and gOutputDir.
Referenced by main(), and ScalarCompiler::prepare().

|
static |
Definition at line 186 of file main.cpp.
References gMasterDocument, gMasterName, and gOutputDir.
Referenced by main().

| void printheader | ( | ostream & | dst | ) |
Definition at line 500 of file main.cpp.
References FAUSTVERSION, gMetaDataSet, and tree().
Referenced by main().


| void printhelp | ( | ) |
Definition at line 439 of file main.cpp.
References printversion().
Referenced by main().


| void printversion | ( | ) |
Definition at line 432 of file main.cpp.
References FAUSTVERSION.
Referenced by main(), and printhelp().

| bool process_cmdline | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 197 of file main.cpp.
References check_url(), gArchFile, gBalancedSwitch, gClassName, gDeepFirstSwitch, gDetailsSwitch, gDocLang, gDrawPSSwitch, gDrawSignals, gDrawSVGSwitch, gDumpNorm, gExportDSP, gFloatSize, gFoldThreshold, gGraphSwitch, gGroupTaskSwitch, gHelpSwitch, gImportDirList, gInlineArchSwitch, gInPlace, gInputFiles, gLessTempSwitch, gMaxCopyDelay, gMaxNameSize, gOpenMPLoop, gOpenMPSwitch, gOutputDir, gOutputFile, gPrintDocSwitch, gPrintFileListSwitch, gPrintXMLSwitch, gSchedulerSwitch, gShadowBlur, gSimpleNames, gSimplifyDiagrams, gStripDocSwitch, gTimeout, gTimingSwitch, gUIMacroSwitch, gVecSize, gVectorLoopVariant, gVectorSwitch, gVersionSwitch, and isCmd().
Referenced by main().


| int yyparse | ( | ) |
Definition at line 1748 of file faustparser.cpp.
| string gArchFile |
Definition at line 132 of file main.cpp.
Referenced by main(), and process_cmdline().
| int gBalancedSwitch = 0 |
Definition at line 125 of file main.cpp.
Referenced by process_cmdline().
| string gClassName = "mydsp" |
Definition at line 158 of file main.cpp.
Referenced by main(), process_cmdline(), and replaceClassName().
| bool gDeepFirstSwitch = false |
Definition at line 139 of file main.cpp.
Referenced by Klass::printLoopGraphVector(), and process_cmdline().
| bool gDetailsSwitch = false |
Definition at line 114 of file main.cpp.
Referenced by main(), and process_cmdline().
| string gDocLang |
Definition at line 118 of file doc.cpp.
Referenced by printDoc(), and process_cmdline().
| string gDocName |
Contains the filename for out documentation.
Definition at line 107 of file main.cpp.
Referenced by declareAutoDoc(), initFaustDirectories(), and printDoc().
| vector<Tree> gDocVector |
| bool gDrawPSSwitch = false |
Definition at line 119 of file main.cpp.
Referenced by main(), and process_cmdline().
| bool gDrawSignals = false |
Definition at line 116 of file main.cpp.
Referenced by ScalarCompiler::prepare(), and process_cmdline().
| bool gDrawSVGSwitch = false |
Definition at line 120 of file main.cpp.
Referenced by main(), and process_cmdline().
| bool gDumpNorm = false |
Definition at line 149 of file main.cpp.
Referenced by ScalarCompiler::prepare(), and process_cmdline().
| Tree gExpandedDefList |
Definition at line 108 of file main.cpp.
Referenced by main(), prepareDocEqns(), and printDocDgm().
| bool gExportDSP = false |
Definition at line 159 of file main.cpp.
Referenced by main(), and process_cmdline().
| string gFaustDirectory |
Definition at line 103 of file main.cpp.
Referenced by fopensearch(), initFaustDirectories(), and open_arch_stream().
| string gFaustSuperDirectory |
Definition at line 102 of file main.cpp.
Referenced by fopensearch(), initFaustDirectories(), and open_arch_stream().
| string gFaustSuperSuperDirectory |
Definition at line 101 of file main.cpp.
Referenced by fopensearch(), initFaustDirectories(), and open_arch_stream().
| int gFloatSize = 1 |
Definition at line 153 of file main.cpp.
Referenced by ffname(), icast(), ifloat(), inumix(), isuffix(), boxpp::print(), Klass::printAdditionalCode(), and process_cmdline().
| int gFoldThreshold = 25 |
Definition at line 126 of file main.cpp.
Referenced by drawSchema(), and process_cmdline().
| bool gGraphSwitch = false |
Definition at line 118 of file main.cpp.
Referenced by main(), and process_cmdline().
| bool gGroupTaskSwitch = false |
Definition at line 146 of file main.cpp.
Referenced by Klass::buildTasksList(), Klass::printLoopGraphOpenMP(), Klass::printLoopGraphScheduler(), Klass::printLoopGraphVector(), and process_cmdline().
| bool gHelpSwitch = false |
Definition at line 112 of file main.cpp.
Referenced by main(), and process_cmdline().
| list<string> gImportDirList |
Definition at line 161 of file main.cpp.
Referenced by fopensearch(), and process_cmdline().
| bool gInlineArchSwitch = false |
Definition at line 156 of file main.cpp.
Referenced by process_cmdline(), and streamCopyUntil().
| bool gInPlace = false |
Definition at line 163 of file main.cpp.
Referenced by ScalarCompiler::compileMultiSignal(), ScalarCompiler::generateInput(), and process_cmdline().
| list<string> gInputFiles |
Definition at line 134 of file main.cpp.
Referenced by initFaustDirectories(), main(), and process_cmdline().
| bool gLessTempSwitch = false |
Definition at line 130 of file main.cpp.
Referenced by process_cmdline().
| string gMasterDirectory |
Definition at line 105 of file main.cpp.
Referenced by fopensearch(), and initFaustDirectories().
| string gMasterDocument |
Definition at line 104 of file main.cpp.
Referenced by declareMetadata(), initFaustDirectories(), main(), makeDrawPath(), makeDrawPathNoExt(), printdoccontent(), printfaustlistings(), and printlatexheader().
| string gMasterName |
Definition at line 106 of file main.cpp.
Referenced by initFaustDirectories(), makeDrawPath(), makeDrawPathNoExt(), and printlatexheader().
| int gMaxCopyDelay = 16 |
Definition at line 131 of file main.cpp.
Referenced by SchedulerCompiler::dlineLoop(), VectorCompiler::dlineLoop(), VectorCompiler::generateCacheCode(), ScalarCompiler::generateDelayLine(), ScalarCompiler::generateDelayVecNoTemp(), VectorCompiler::generateFixDelay(), ScalarCompiler::generateFixDelay(), and process_cmdline().
| int gMaxNameSize = 40 |
Definition at line 127 of file main.cpp.
Referenced by process_cmdline(), and setDefNameProperty().
Definition at line 91 of file main.cpp.
Referenced by declareAutoDoc(), declareMetadata(), main(), printDocMetadata(), printheader(), Klass::println(), and Klass::printMetadata().
| bool gOpenMPLoop = false |
Definition at line 144 of file main.cpp.
Referenced by Klass::printLoopLevelOpenMP(), and process_cmdline().
| bool gOpenMPSwitch = false |
Definition at line 143 of file main.cpp.
Referenced by Klass::printComputeMethod(), Klass::printIncludeFile(), and process_cmdline().
| string gOutputDir |
Definition at line 162 of file main.cpp.
Referenced by main(), makeDrawPath(), makeDrawPathNoExt(), and process_cmdline().
| string gOutputFile |
Definition at line 133 of file main.cpp.
Referenced by main(), and process_cmdline().
| bool gPrintDocSwitch = false |
Definition at line 122 of file main.cpp.
Referenced by main(), and process_cmdline().
| bool gPrintFileListSwitch = false |
Definition at line 155 of file main.cpp.
Referenced by main(), and process_cmdline().
| bool gPrintXMLSwitch = false |
Definition at line 121 of file main.cpp.
Referenced by main(), and process_cmdline().
| SourceReader gReader |
Definition at line 89 of file main.cpp.
Referenced by main(), printDoc(), and printfaustlistings().
| Tree gResult |
Definition at line 86 of file main.cpp.
Referenced by SourceReader::parse(), and yyparse().
| bool gSchedulerSwitch = false |
Definition at line 145 of file main.cpp.
Referenced by main(), Klass::printComputeMethod(), Klass::println(), and process_cmdline().
| bool gShadowBlur = false |
Definition at line 117 of file main.cpp.
Referenced by process_cmdline(), SVGDev::rect(), and SVGDev::SVGDev().
| bool gSimpleNames = false |
Definition at line 128 of file main.cpp.
Referenced by applyList(), and process_cmdline().
| bool gSimplifyDiagrams = false |
Definition at line 129 of file main.cpp.
Referenced by evalprocess(), and process_cmdline().
| bool gStripDocSwitch = false |
Definition at line 124 of file main.cpp.
Referenced by printfaustlisting(), process_cmdline(), and yyparse().
| int gTimeout = 120 |
Definition at line 151 of file main.cpp.
Referenced by main(), and process_cmdline().
| bool gTimingSwitch = false |
Definition at line 115 of file main.cpp.
Referenced by endTiming(), process_cmdline(), and startTiming().
| bool gUIMacroSwitch = false |
Definition at line 148 of file main.cpp.
Referenced by Klass::println(), and process_cmdline().
| int gVecSize = 32 |
Definition at line 140 of file main.cpp.
Referenced by SchedulerCompiler::dlineLoop(), VectorCompiler::dlineLoop(), VectorCompiler::generateCacheCode(), VectorCompiler::generateFixDelay(), Klass::printComputeMethodOpenMP(), Klass::printComputeMethodScheduler(), Klass::printComputeMethodVectorFaster(), Klass::printComputeMethodVectorSimple(), process_cmdline(), SchedulerCompiler::vectorLoop(), and VectorCompiler::vectorLoop().
| int gVectorLoopVariant = 0 |
Definition at line 141 of file main.cpp.
Referenced by Klass::printComputeMethod(), and process_cmdline().
| bool gVectorSwitch = false |
Definition at line 138 of file main.cpp.
Referenced by main(), Klass::printComputeMethod(), Klass::printLoopGraphInternal(), Klass::printLoopGraphVector(), and process_cmdline().
| bool gVersionSwitch = false |
Definition at line 113 of file main.cpp.
Referenced by main(), and process_cmdline().
| int yydebug |
Definition at line 1412 of file faustparser.cpp.
| int yyerr |
Definition at line 83 of file main.cpp.
Referenced by main(), SourceReader::parse(), and yyparse().
| FILE * yyin = (FILE *) 0 |
Definition at line 351 of file faustlexer.cpp.
1.8.7