By Theo Verelst

The previous page on this subject, containing the code fragments, both C and tcl on-page, is automatically generating socket based Tcl / C connection code, 1.

Here I'll look at putting the main parts of the example in BWise blocks and graphs, to make the whole undertaking more insightfull and automated at block level.

http://82.168.209.239/Wiki/stubcompile1.jpg

Block functions and value (after 'Funprop'-ing all input blocks into a successfull compile):

 set Proc1.bfunc {gcc -c ${Proc1.in} ; set Proc1.out [file rootname ${Proc1.in}].
 set Proc1.bfunc_init {}
 set Proc1.in {test.c}
 set Proc1.out {test.o}
 set Proc2.bfunc {gcc -c ${Proc2.in} ; set Proc2.out [file rootname ${Proc2.in}].
 set Proc2.bfunc_init {}
 set Proc2.in {}
 set Proc2.out {}
 set Proc3.bfunc {gcc -c ${Proc3.in} ; set Proc3.out [file rootname ${Proc3.in}].
 set Proc3.bfunc_init {}
 set Proc3.in {}
 set Proc3.out {}
 set Proc4.bfunc {gcc -o stub ${Proc4.in1} ${Proc4.in2} ${Proc4.in3}  ; set Proc4
 set Proc4.bfunc_init {}
 set Proc4.in1 {}
 set Proc4.in2 {}
 set Proc4.in3 {}
 set Proc4.out {}