next up previous contents index
Next: Translating multiarray creation Up: Basic translation Previous: Translating variable accesses   Contents   Index


Translating assignment expressions

When the expresssions involved are multiarrays, the general scheme is illustrated in Figure A.22. This translation applies to assignments where the right-hand-side of the assignment is not a composite expression. Assignments involving composite expressions are handled in the following sections.

Figure A.23: Translation of multiarray creation expression in non-HPspmd code.
SOURCE:

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\begin{tabbing}
$a$ \verb$ =...
...verb$]] $$\mbox{\it bras}$\verb$ ;$
\end{tabbing}\end{minipage}\end{displaymath}

TRANSLATION:


\begin{displaymath}
\begin{minipage}[t]{\linewidth}\begin{tabbing}
\verb$int $$s...
...rb$ = new ArrayBase(null, 0) ;$ \\
\end{tabbing}\end{minipage}\end{displaymath}

where:

\begin{displaymath}
\begin{array}{l}
\mbox{$T$ is a Java type,} \\
\mbox{$R$ ...
...ro {\it DEFINE\_DIMENSION} is defined in the text.}
\end{array}\end{displaymath}



Bryan Carpenter 2003-04-15