next up previous contents index
Next: Note on namespaces Up: C++ model Objective-C design Previous: Modification to the Swarm   Contents   Index

C++ $\leftrightarrow $ Objective-C execution results: myCounter example

Figure 15 shows the Makefile of the myCounter example and Figure 16 shows the execution trace of this Makefile and the execution results of the myCounter example.

Figure 15: Makefile for myCounter example
\begin{figure}\begin{verbatim}.h.cd: classdesc -objc writeobjc < $< > $@
.h.mh...
...rExportCpp.cc write_objc myCounter.mh myCounter.m
...\end{verbatim}
\end{figure}

Figure 16: myCounter sample execution trace
\begin{figure}\begin{verbatim}$ make clean
$ make ? Step 1
classdesc -objc wri...
...bjC parameter passing: Sum = 16.500000
End testing.
$\end{verbatim}
\end{figure}



Russell Standish 2016-09-02