@rem Windows batch file to produce call graph for earth.c @rem The tools used can be found at @rem www.gson.org/egypt/egypt.html @rem www.graphviz.org set EXCLUDE=free1,malloc1,calloc1,FreeR,ServiceR,Compare,OrderArray,GetNbrUsedCols,CopyUsedCols set EXCLUDE=%EXCLUDE%,InitBetaCache,FreeBetaCache,Mean,SumOfSquares,GetRssNull,GetGcv set EXCLUDE=%EXCLUDE%,GetMinSpan,GetEndSpan,GetCut,InitQ,FreeQ,CompareQ,PrintSortedQ,CompareAgedQ set EXCLUDE=%EXCLUDE%,AddTermToQ,UpdateRssDeltaInQ,PrintSummary,PrintPredNames set EXCLUDE=%EXCLUDE%,PrintForwardProlog,PrintForwardStep,PrintForwardEpilog set EXCLUDE=%EXCLUDE%,GetMaxKnotsPerTerm,FormatOneResponse set EXCLUDE=%EXCLUDE%,free,memcpy,memset,Rprint,Rf_error,Rf_warning,sqrt,R_finite set EXCLUDE=%EXCLUDE%,InitAllowedFunc,FreeAllowedFunc,Rprintf,Order set EXCLUDE=%EXCLUDE%,__main,printf,_finite,error,xerbla,vsprintf,exit,strncpy @rem ----- generate earth-callgraph.ps ------------------------------------------- gcc -dr -Wall -pedantic -Wextra -std=gnu99 -IC:/PROGRA~1/R/R-2.6.1/include -I../src/tests -c ..\src\earth.c perl /a1/graphviz/egypt-1.6/egypt --omit %EXCLUDE% --include-external earth.c.01.rtl >callgraph.tmp @rem page len is 10.5 not 11 else part of graph gets chopped off "\Program Files\Graphviz2.16\bin\dot.exe" -Grotate=90 -Gsize=10.5,8.5 -Tps -o earth-callgraph.ps callgraph.tmp @rem ----- generate earth-standalone-callgraph.ps -------------------------------- gcc -dr -DSTANDALONE -DMAIN -Wall -pedantic -Wextra -std=gnu99 -IC:/PROGRA~1/R/R-2.6.1/include -I../src/tests -c ..\src\earth.c perl /a1/graphviz/egypt-1.6/egypt --omit %EXCLUDE% --include-external earth.c.01.rtl >callgraph.tmp "\Program Files\Graphviz2.16\bin\dot.exe" -Grotate=90 -Gsize=10.5,8.0 -Tps -o earth-standalone-callgraph.ps callgraph.tmp