METHOD AND PRODUCT INVOLVING TRANSLATION AND EXECUTION OF PROGRAMS BY AUTOMATIC PARTITIONING AND DATA STRUCTURE ALLOCATION

Abstract: A set of source program modules are translated into machine code blocks. The original or intermediate source code is processed into a program description tree (152) having program description parameters. This tree corresponds to a hierarchical set of data structure definitions (136, 138). The program description tree is then traversed to generate a program attribute tree (154) having program attribute parameters. The program attribute parameters (154) and certain machine attribute parameters (156) are operated on to produce a mapping strategy tree (158) having mapping parameters. The mapping strategy parameters and the program description tree are then operated on to produce a distribution of machine code blocks (148), assemblages of which correspond to distributed phases of the computation.

Description: Method and Product Involving Translation and Execution of Programs by Automatic Partitioning and Data Structure Allocation Background of the Invention 1. Field of the Invention The present invention relates to the efficient implement¬ ation of computations expressed in high-level programming languages on multiprocessor computers and, more particularly, on dataflow processing elements. 2. The Related Art Compilers of various designs have been proposed for translating source programs in high level language to target programs in machine code or assembly language for execution by conventional sequential computers. Such compilers have been variously classified as single-pass, multi-pass, load-and-go, debugging, or optimizing—depending on their construction or function. In a typical optimizing compiler, for example, attention is focused on one program section at a time, and any change that improves the speed of execution of one section almost always yields an improvement in overall performance. Since the introduction of supercomputers that achieve high performance through the pipelining of vector operations, much effort has been devoted to so-called vectorizing compilers, compilers that identify sections of code that may be replaced by vector operations. These conventional compiling techniques are inadequate for producing efficient machine code programs for multiprocessor computers generally and dataflow multiprocessors particularly. To achieve best performance on a multiprocessor, it is necessary to keep each processing element as fully occupied with useful computational work as possible. For this purpose, a global analysis of the source program is necessary. The present invention introduces implementation tech¬ niques based on the global organization of data structure definitions in the source program. Key issues resolved in the invention are the partition of the computation into a time-sequence of phases, and the optimum allocation of code blocks, representing data structure values, to the processing elements and memories of a multiprocessor computer having dataflow processing elements. References The present invention is an advance beyond certain earlier concepts, which are disclosed in the following U.S. Patents, and in which the present inventor is a joint or sole inventor: 1. U.S. Patent No. 3,962,706, dated June 8, 1976, for Data Processing Apparatus for Highly Parallel Exe¬ cution of Stored Programs; 2. U.S. Patent No. 4,128,882, dated December 5, 1978, for Packet Memory System with Hierarchical Struc¬ ture; 3. U.S. Patent No. 4,130,885, dated December 19, 1978, for Packet Memory System for Processing Many In¬ dependent Memory Transactions Concurrently; 4. U.S. Patent No. 4,145,733, dated March 20, 1979, for Data Processing Apparatus for Highly Parallel Execution of Stored Programs; 5. U.S. Patent No. 4,149,240, dated April 10, 1979, for Data Processing Apparatus for Highly Parallel Exe¬ cution of Data Structure Operations; and 6. U.S. Patent No. 4,153,932, dated May 8, 1979, for Data Processing Apparatus for Highly Parallel Exe¬ cution of Stored Programs. The following references also are cited as being relevant to the present invention. In these references, CGS and LCS refer respectively to the Computation Structures Group and the Laboratory for Computer Science at the Massachusetts Institute of Technology (MIT) , 545 Technology Square, Cambridge, Massachusetts, U.S.A. 02139, where much of the work on dataflow technology has been done. 7. Ackerman, W.B. Data Flow Languages, Computer, IEEE, February, 1982. Previously appeared in Proc. of the 1979 Nat. Comp. Conf., August 1979 and as CSG Memo 177, May 1979. 8. Ackerman, W.B. and Dennis, J.B. VAL--A Value- oriented Algorithmic Language: Preliminary Reference Manual. Report MIT/LCS/TR-218 , LCS, June 1978. 9. Adams, G.B. , Brown R.L. , and Denning, P.J. Report on an Evaluation Study of Data Flow Computation. Research Institute for Advanced Computer Science, Moffett Field, CA, April 1985. 10. Agerwala, T. and Arvind, Eds. Special issue on Data Flow Systems. Computer 15,2, February 1982. 11. Arvind, and K.P. Gostelow. A Computer Capable of Exchanging Processors for Time. Information Process¬ ing 77: Proceedings of IFIP Congress 77, Toronto, Canada, August 1977, pp. 849-853. 12. Arvind and Kathail, V. A Multiple Processor Dataflow Machine That Supports Generalized Procedures. Proc. of the Eight Ann. Arch. Conf., May, 1981. Also published as CSG Memo 205-1, June 1981. 13. Beam, R. and Warming, R.F. An Implicit fi¬ nite-difference algorithm for hyperbolic systems in conservation-law-form. J. Comp. Physics, September 1976. 14. Cornish, M. , et al. The TI Data Flow Architec¬ tures: The Power of Concurrency for Avionics. Proceed¬ ings of the Third Digital Avionics Systems Conference, November 1979, pp. 19-25. 15. Currie, I.G., Fundamental Mechanics of Fluids. McGraw-Hill, New York, 1974. 16. Davis, A.L., and Keller, R.M. , "Dataflow Program Graphs. Computer 15, 2 , February 1982, 26-41. 17. Dennis, J.B. First Version of a Data Flow Proce¬ dure Language. In Programming Symposium, B. Robinet, Ed., Lecture Notes in Computer Science 19: Springer-Verlag, Berlin, Heidelberg, New York, 1984. Also published as MIT/LCS/TM-61, May 1975. 18. Dennis, J.B. Data Flow Supercomputers. Comput¬ er 13 , 11 November 1980. 19. Dennis, J.B. An Operational Semantics for a Language With Early Completion Data Structures. Informal Description of Programming Concepts, Berlin, Heidelberg, New York: Springer-Verlag, 1981. Also published as CSG Memo 207, February 1981. 20. Dennis, J.B., Gao, G.R., and Todd, K.R. A Data Flow Supercomputer." CSG Memo 213, March 1982. 21. Dennis, J.B. and Misunas, D.P. A Preliminary Architecture for a Basic Data Flow Computer. Proc. of the Second Ann. Symp. on Computer Architecture, IEEE, 1975. Also published as CSG Memo 102, August 1974. 22. Dennis, J.B., Stoy, J.E. , and Guharoy, B. VIM: An Experimental Multi-User System Supporting Functional Programming. CSG Memo 238, Aoril 1984. 23. Douglas, J. , Jr. , and Gunn, J.E., A General Formulation of Alternating Direction Methods. Nu er. Math. 4 (1964) , 428. 24. Fosseen, J.B., Representation of Algorithms by Maximally Parallel Schemata. Master Th. , Dept. of Elec¬ trical Engineering and Computer Science, MIT, June 1972. 25. Gao, G-R. An Implementation Scheme for Array of Operations in Static Data Flow Computers. LCS, Master's thesis, Department of Electrical Engineering and Computer Science, MIT, Cambridge, Mass. June 1982. 26. Gao, G-R., A Maximally Pipelined Tridiagonal Linear Equation Solver. CGS Memo 254, August 1985. 27. Gurd, J.R. , C.C. Kirkham, and I. Watson, The Manchester Dataflow Prototype Computer. Communications of the ACM 28, January 1985, 34-52. 28. Kahn, G. , The Semantics of a Simple Language for Parallel Programming. Information Processing 74: Proceedings of the IFIP Congress 74, 1974, pp. 471-475. 29. Karp, R.M., and Miller, R.E., Properties of a model for parallel computations: determinacy, termination and queueing. SIAM J. Appl. Math. 14, November 1966. 30. Kogge, P.M., The Architecture of Pipelined Computers, McGraw-Hill, New York, NY 1981. 31. McGraw, J. , Data Flow Computing—The Val Lan¬ guage. Computation Structures Group Memo 188, January 1980. 32. Montz, L. Safety and Optimization Transfor¬ mations for Data Flow Programs. MIT/LCS/TR-240, LCS. Master's thesis, Department of Electrical Engineering and Computer Science, MIT, Cambridge, MA, June 1980. 33. NEC Electronics, Inc., Advanced Product Infor¬ mation User's Manual: PD7281 Image Pipelined Processor. Mountain View, CA, 1985 34. Patil, S.S. Closure Properties of Intercon¬ nections of Determinate Systems. Record of the Project MAC Conference on Concurrent Systems and Parallel Compu¬ tation, ACM, New York, NY, 1970. 35. Peterson, J.L., Petri Net Theory and the Model¬ ing of Systems. Prentice-Hall, Englewood Cliffs, NJ, 1981. 36. Pulliam, T.H. and Steger, J.L. On Implicit Finite-Difference Simulations of Three Dimensional Flow. American Institute of Aeronautics and Astronautics, January 1978. 37. Ramchandani, C, On The Computation Rate of Asynchronous Computation Systems, Proc. of the Seventh Ann. Princeton Conf. on Information Sciences and Systems, 1973. 38. Rodriguez, J.E. , A Graph Model For Parallel Computation. Ph.D. Th. , MIT, September 1969. 39. Van Horn, E., Computer Design for Asynchronous¬ ly Reproducible Multiprocessing, MAC/TR-34, Project MAC, MIT November 1966. 40. Vedder, R. , Campbell, M. , and Tucker, G. , The Hughes Data Flow Multiprocessor. Proceedings of the 5th International Conference on Distributed Computing sys¬ tems, Denver CO, 1985, pp. 2-9. 41. Watson I. and J. Gurd, A Practical Data Flow Computer. Computer 15, 2, February 1982, 51-57. 42. Wetherell, C.S., Error Data Values in the Da- ta-Flow Language VAL. Transactions on Programming Lan¬ guages and Systems 4, 2, April 1982, 226-238. 43. Yuba, T. , T. Shimada, K. Hiraki, and H. Kashiwagi. Sigma-1: A Dataflow Computer For Scientific Computation. Electronical Laboratory, 1-1-4 Umesono, Sa uramura, Niiharigun, Ibaraki 305, Japan, 1984. 44. Plas, A., Lau System Architecture: A Parallel Data-Driven Processor Based on Single Assignment. Univer¬ sity de Toulouse, France, August, 1976. 45. Rumbaugh, J.E., A Parallel Asynchronous Comput¬ er Architecture for Data Flow Programs. MIT Thesis, Project MAC, May 1975. 46. U.S. patent No. 3,978,452, issued August 1976, in the names of Barton, R.S., et al, for "System and Method for Concurrent and Pipeline Processing Employing a Data Driven Network." Summary of the Invention The primary object of the present invention is to provide a novel method for efficiently implementing, in a dataflow computer comprising multiple processing elements and regional memories, computations that have been expressed in high-level language programs. In the method of the present invention, the set of source program modules, which expresses the complete computation to be executed on the target machine, are separated into distinct data structure definitions. These definitions are used to generate machine code blocks in accordance with a strategy that prescribes: (1) a grouping of assemblages of the code blocks into successive phases of machine code execution; (2) an allocation of copies of code blocks among the processing elements for each phase of machine code computation; (3) a partitioning of the elements of each defined data structure into element groups, and an allocation of the element groups among the regional memories; and (4) a prescription for the structure of each code block, specifically the order of access and generation of data structure elements, and a choice between use of direct communication with adjacent code blocks and use of regional memory for inputs and/or results. The method involves the translation of a set of source program modules into machine code blocks by a process includ¬ ing the steps of: (1) program analysis; (2) strategy; and (3) code construction. The oriσinal or intermediate source code is processed into a program description tree having program description parameters. This tree corresponds to a hierarchi¬ cal set of data structure definitions. The analysis step includes traversing the program description tree to generate a program attribute tree having program attribute parameters. The strategy step includes operating on the program attribute parameters and certain machine attribute parameters to produce a mapping strategy tree having mapping parameters. The con¬ struction step includes operating on the mapping strategy parameters and the program description tree to produce a distribution of machine code blocks, assemblages of which correspond to distributed phases of the computation. Other objects will in part be obvious and will in part appear hereinafter. Brief Description Of The Drawings For a fuller understanding of the nature and objects of the present invention, reference is made to the following description, which is to be taken in connection with the accompanying drawings wherein: Fig. 1 illustrates the components of a compiler for producing the machine code blocks of the present invention; Fig. 2 illustrates a dataflow multiprocessor for running the phases of a partitioned machine program according to the present invention; Fig. 3 illustrates certain dataflow programming princi¬ ples in terms of Val, a functional programming language; Fig. 4 illustrates dataflow graph principles that corre¬ spond to the programming principles of Fig. 3; Fig. 5 illustrates dataflow instructions arranged for pipelined execution in accordance with the present invention; Figs. 6a, 6b and 6c illustrate alternative representations of array values and space-time relationships in accordance with the present invention; Fig. 7 illustrates the phases of a smoothing function called Smooth in connection with the use of array memories in accordance with the present invention; Fig. 8 illustrates a data smoothing function written in the Val programming language utilizing Smooth for one physical quantity and one direction of processing; Fig. 9 illustrates a description tree for Smooth; Fig. 10 illustrates a description tree for Smooth using a subrange node; Figs. 11 and 12 illustrate dataflow machine code for the smoothing function of Fig. 9; Fig. 13 is a program that illustrates the top level of an aerodynamic simulation code called AeroSim; Fig. 14 is a dataflow diagram for AeroSim; Fig. 15 is a dataflow program for the main iteration body; Fig. 16 is a dataflow diagram for the main iteration body; Fig. 17 illustrates the XPass module written in Val; Fig. 18 illustrates a dataflow diagram for the XPass module; Fig. 19 illustrates a summary of the results of program analysis; Fig. 20 illustrates top levels of the description tree for AeroSim; Fig. 21 illustrates start-up and shut-down of a pipeline and its effect on performance; and Fig. 22 illustrates pipeline efficiencies of the compo¬ nents for a module called Step. Description of the Preferred Embodiment A. Overview Fig. 1 illustrates a compiler that performs analysis, strategy and construction steps, by which the machine code blocks of the present invention are derived. Fig. 2 illus¬ trates features of a dataflow multiprocessor on which the machine code blocks may be run. Figs. 3 through 6 illustrate particular relationships between the machine code phases and the multiprocessor features. Figs. 7 through 12 are presented in reference to Example I, which illustrates a process of the present invention. Figs. 13 through 22 are presented in reference to Example II which illustrates another process of the present invention. Fig. 1 will be discussed following a review of the principles illustrated in Figs. 2 through 6. As was described more generally above, the illustrated embodiment of the present invention involves a method of running a machine code program in a computer, the machine code program containing one or more machine code blocks and corresponding to a preliminary higher level program. The computer comprises: a plurality of memory means for storing (1) given machine code instructions having predecessor and successor machine code instructions, and (2) machine words corresponding to data structure values declared by data structure definitions occurring in said preliminary higher level program; and a plurality of processing element means for executing said given machine code instructions, each being executed contingently on the occurrence of signals generated by the execution of certain of its predecessor and successor machine code instructions. Certain of the memory means and the processing element means are in local association with respect to each other and are remote from others of the memory means and the processing element means. The method comprises: assigning substantial replications of the machine code blocks to certain of the memory means for execution in certain phases by certain of the processing element means; the machine code blocks being collections of the machine code instructions, the phases being distributions of substantial replications of the machine code blocks over time; the machine code blocks being in correspondence with certain of the data structure definitions; constructing assignments of groups of the machine words to local associations of memory means and processing element means, the groups of machine words representing elements of the data structure values; and operating the processing element means to execute assemblages of machine code blocks in a succession of the phases in accordance with the assignment of the groups of machine words. B. Multiprocessors Generally - Fig. 2 Generally, a multiprocessor may be considered to have firmware memory means, random access memory means, a plurality of processing element means, externally accessible in¬ put/output means, and intercommunication means. In the multiprocessors presently considered, the hardware supports operations by which any one of a large fraction of the processing elements can communicate with any other of a large fraction of the processing elements. The random access memory means includes, in effect, a global memory means containing one or more of regional memory means, a selected association of one of the processing element means and one of the regional memory means being local with respect to each other and remote with respect to other associations of the regional memory means and the processing element means. The firmware memory means permanently records an instruction set of opcodes by which the plurality of processing elements are able to operate arithmetically and logically on operands from the global memory means to produce results in the global memory means. The number of the processing element means and the sizes of the regional memory means constitute components of a machine attribute set. As shown in Fig. 2, this multiprocessor embodies a plurality of processing elements 110 and a plurality of array memories 120. The processing elements communicate internally via paths 122 through a routing network 124 and externally via paths 126 through an input/output network 128. In one example of a multiprocessor to which the process of the present invention is applied, the multiprocessor is controlled by a monitor controller 130. As shown, each processing element 110 is associated with a local array memory 120. The present invention particularly applies to dataflow multiprocessors. In a dataflow multiprocessor, each processing element contains a collection of dataflow instructions, predecessor-successor pairs of instructions being related by functional dependencies, a predecessor instruction having one or more successor instructions, and a successor instruction having one or more predecessor instructions. A static dataflow multiprocessor conforming to these specifications is disclosed in United States patent application Serial No. 885,836, filed July 15, 1986, in the name of Jack B. Dennis for Dataflow Processing Element, Multiprocessor and Processes, the entire disclosure of which is incorporated herein by reference. It is to be understood that the present invention applies equally to other dataflow multiprocessors, in particular tagged-token and other dynamic dataflow multiprocessors. C. Source Language The Fortran programming language generally is used to express scientific computations for execution on conventional computers and vector pipelined supercomputers. However, Fortran programs are difficult to analyze for sections of code that can be run concurrently on the processing elements of a multiprocessor computer. Programming languages such as Val and Id have been designed as functional languages, specifically so that program sections that can run concurrently are easily identified. In a Val program, the data structure definitions that are illustrative of the method of the present invention are distinctively manifested by the syntactic structure of the language. Therefore, it is easy to translate program modules written in Val into module description trees in which the main nodes correspond to data structure definitions. To apply the implementation techniques of the present invention to programs in non-functional languages such as Fortran, Pascal and Lisp, it is necessary, as a preliminary step, to perform a global dataflow analysis of the complete program and to recast the expressed computation as a hierarchical set of partially ordered data structure definitions. D. The Process of the Present Invention The process of the present invention is characterized by (1) generation of a distribution of machine code blocks for a dataflow multiprocessor from a program description tree that represents a nested hierarchy of partially ordered data structure definitions derived from a group of high level language source program modules; and (2) execution of a computation by running the distribution of machine code blocks on a distribution of the processing elements of the dataflow multiprocessor in one or more assemblages—one or more phases. The process of generating machine code blocks from source language program modules is performed by the compiler of Fig. 1. As shown, the compiler of Fig. 1 comprises: front end components 132, 134; graph components 136, 138; a link component 140; an analyze component 142; an adjust component 144; a strategy component 146; a construct component 148; and an evaluate component 150. The purpose of this compiler is to produce assemblages of machine code blocks for efficient execution of a program as a succession of one or more computing phases. The process of generating machine code blocks from source programs written in Val or Fortran is illustrated in Fig. 1. The source program text is scanned and parsed by front end components 132 and 134, which checks for correct syntax, correct type, and for all other compiler detectable errors in the source program. Graph component 136 or 138 identifies the sections of the source programs that form data structure definitions and builds the corresponding module description tree. In the case of a functional language such as Val, the identification of data structure definitions is straight¬ forward. In the case of a non-functional language such as Fortran, the graph component must perform a global dataflow analysis of the Fortran program module to convert the code into functional form such that the independent data structure definitions can be identified. The module description tree retains all structural information in the source program module for use in later phases of operation of the compiler. The nodes of the module description tree represent source program segments of the following types: simple arithmetic expressions containing no references to data structure elements; structure expressions in the form of arithmetic expressions including array references; conditional expressions; and each of any kinds of expressions or combinations of expressions allowed by the source language to constructively define data structure values. Link component 140 links together the module description trees from graph modules 136, 138. The result is a program description tree 152 having program description parameters with a structure in which nodes are in correspondence with segments of the source program text and denote functional relationships of results to arguments. Analyze component 142 traverses program description tree 152 to generate a program attribute tree as at 154 having nodes that define attributes of corresponding nodes in program description tree 152. In many programs for large-scale compu¬ tation, sufficient information may be extracted from the program text to determine many quantitative measures of the resources required by program parts. This information in¬ cludes the dimensions of arrays and size parameters of other data structures defined by the program, the range of index values in forall expressions, the number of cycles performed by for .. iter loops, and the conditions that control evaluation of if..then..else expressions. The analyze component extracts this information from the linked set of program modules and also determines scalar operation counts for each program part to the best of its ability. Adjust component 144 permits a user to supply attributes to the program attribute tree 154. The analysis step will be more or less successful depending on the kind of program being processed. If information derived from the program text is not sufficient to determine a good measure of the program 1 s resource requirements, the user can intervene via adjust component 144 to supply additional information such as the range of cycles taken by an iteration, the typical size of an array, or the frequency of selection of the alternative arms of a conditional expression. Strategy component 146 uses information in program attribute tree 154 and machine attribute parameters as at 156 to produce a mapping strategy tree as at 158. The objective for choice of strategy is that the set of machine code blocks specified for each data structure definition of the source program should, when executed together with other parts of the target code, achieve balanced utilization of the machine's resources. Specifically, strategy component 148 determines: a partition of the collection of code blocks into phases; and for each phase and each code block, the type of constructed machine code block and the assignment of copies of the machine code block to processing elements of the target machine. The function of construct component 148 is to build the dataflow machine code block according to the strategy provided by strategy module. An evaluate component 150 uses mapping strategy tree 158 to produce a performance estimate. This estimate may be used to guide revisions to the computational algorithm, or to change information provided to the compiler by means of adjust component 144. An important feature of any compiler is provision of information that permits users to test and correct programs by inspecting intermediate results produced during a computation. The convenience of being able to carry out this inspection in terms of source language names and constructs has become mandatory for efficient program development. To support this feature, the illustrated compiler provides debug information at 162 that relates names occurring in the initial dataflow program to the memory locations at which the associated values and code have been allocated in the machine. E. Data Structures of the Compiling Process The compiling process involves several data structures: (a) a form of program description tree; (2) a form of program attribute tree; and (3) a form of mapping strategy tree. The following illustrations of these data structures are based on the Val programming language and on multidimentional array values, which are a primary form of data structure in scientific computation. Allocation schemes for array values will be discussed in Section F, below. 1. Module Description Trees; Program Description Trees A module description tree or a program description tree typically has node types as listed below. Reference is made to the Val language as representative of languages by which identification of data structure definitions is readily accomplished. Type Remarks Graph Describes an acyclic interconnection of component program elements, described by associated subtrees. ForAll Represents a Val forall expression. Iteration Represents a Val For...Do expression. Conditional Describes a Val conditional expression by references to subtrees for its arm and test expressions. SubRange Describes a conditional expression where the tests divide an index range into manifest subranges. ArrayExp Describes an expression containing only scalar operators and references to array elements. Boolean Describes an expression having a result of type boolean. Apply Describes an invocation of a computation defined by another module description tree. The difference between a module description tree and a program description tree is that a module description tree may contain Apply nodes, but a program description tree does not. The Apply nodes in module description trees are replaced by the specified module description trees by operation of link component 140. In a program description tree, ForAll nodes and Iteration nodes represent source program sections that define scalar values or array values. The remaining node types serve to represent constituent elements of such program sections. 2. Program Attribute Tree A program attribute tree is the result of applying the analyze process to a program description tree. The nodes of a program attribute tree are in correspondence with nodes of the program description tree. However, instead of holding com¬ plete information about the meaning of the corresponding source program phrase, the program attribute tree contains only the summary data needed to deteirmine an optimum mapping strategy. The node types and associated data are as follows: Ty_p_e Analysis Data Graph Describes an acyclic interconnection of component program elements, described by associated subtrees. ForAll Val forall expression. Gives the order and index ranges of its result arrays. Iteration Val for..iter expression. Gives the number of evaluations of its body and the order and index ranges of its result arrays. Conditional Describes a Val conditional expression by references to its arm and test expressions. SubRange Describes a conditional expression where the tests divide an index range into manifest subranges. ArrayExp A Val expression containing only scalar operators and references to array elements. Gives expression depth and operation counts. Boolean A Val expression having a result of type boolean. Gives expression depth and operation counts. 3. Mapping Strategy Tree For certain data structure definition (array definition) nodes of the program description tree, machine code blocks are constructed by the code construct module. The structure of the machine code block is prescribed by the mapping strategy. Thus, a mapping strategy represented by a mapping strategy tree having nodes in correspondence with the data structure definition nodes of a program attribute tree, has the following information for each code block: (1) The numbers of copies of the code block needed to fully utilize the processing elements of the target computer; (2) the manner of handling each data structure input and result, including form of storage and order of access and generation of array elements. In addition, the mapping strategy tree specifies how code blocks are grouped into phases of computation. F. Array Allocation Two alternative views of array values are useful in dataflow computation, as illustrated in Figs. 6a and 6b. In one view, an array is regarded as a set of scalar values carried simultaneously by several dataflow arcs, the array being distributed in space. In the other view, an array is regarded as a set of successive values carried by tokens traversing a single dataflow arc, the array being distributed in time. The choice between distributing in space or in time is an important element of a mapping strategy for matching parallelism in an algorithm to the parallelism supportable by the target computer. In many large scale codes, the parallelism available in the algorithm is so great that distributing most arrays in time is necessary to achieve balanced use of machine resources. In the following discussion, machine code blocks are considered in reference to a static dataflow machine with Npe processing elements (PEs) , each PE having a memory module (AM) . The goal is to choose an allocation of data structure values to memory modules that yields the highest overall speed of computation. Here we illustrate preferred strategies of allocation for an important class of data structures, the multidimensional arrays of scientific computation. In this case, each code block is constructed to implement an array definition derived from the source program text. Within the body of any iteration, the code blocks corre¬ sponding to array definitions form an acyclic directed graph in which each arc represents a link by which one code block delivers an array value to another code block. In some cases, a strategy is possible in which one code block generates array elements in the exact order required by the receiving code block. In this situation, no storage or at most a small FIFO (first in-first out) queue is needed to hold the array elements. If this arrangement is not possible, it is necessary to store the array value in the global memory, which comprises the individual array memory modules associated with the processing elements. The illustrated embodiment of the present invention envisions two strategies for allocating large array values among the regional memories associated with processing elements: (1) truncation of the dimension list, and (2) uniform subcubes. These strategies are defined as follows, where the dimension list of a k-dimension array value is n[i] , .. , n[k] and n[i] = High[i] - Low[i] + 1 is the subscript range for the ith dimension of the array value. (1) Truncation of the dimension list. First a permutation of the dimension list is chosen. Let the permuted list be be p[l],.., p[k]. Then a postfix of the list is chosen p[r] , .. ,p[k] , where 1 LessEq h LessEq k, such that the product of p[h] , ..,p[k] is less than the capacity of an array memory module. The allocation scheme is to assign a number of (k - r + 1) dimension subcubes to each AM such that the array is evenly divided over the Npe AM modules. (2) Uniform subcubes. Given the dimension list n[l] , .. ,n[k] , choose numbers a[l] , .. ,a[k] such that the product of n[i]/a[i] over i is GreaterEq Npe. The strategy is to allocate some number of k-dimension cubes to each PE. Each of these allocation schemes defines an addressing rule by which a processing element accesses or stores an array element allocated to a nonlocal memory module. The addressing rules are: (A) Let Npe be the number of PEs and Mam be the number of words in one AM module. The addressing rule is a rule for computing the processing element number PE# and the word address ADDR within the AM from the array indices x[l], .. ,x[k]. (B) The data used by the addressing rule include the subscript ranges n[1] , .. ,n[k] . Rules For Uniform Subcubes: Given: The strategy is specified by the set of moduli a[1] , .. , a[k] A condition is that the product of (a[i]) must be Less Eq Mam. Since we suppose that at least one subcube is allocated to each PE, violation of this condition implies that the array value is too big for the machine. Let Nc be the product of (n[i]/a[i]) over all i. Nc is the number of subcubes to be allocated among all PEs. ' Let Nd = "smallest int GreaterEq" Nc/Npe. This is the number of subcubes allocated to one PE. Let p[i] = "largest int LessOrEq" x[i]/a[i]; q[i] = modulo (x[i] , a[i]). Then PE# = "largest int LessOrEq" ((product (p[i]) over i) /Nd) ADDR = Base + modulo ( (product (p[i]) over i) , Nd ) (product (p[il) over i + "PolyEval" [a[i], q[i]]) Rules for Truncation Given: Boundary Condition: 1 LessOrEq h LessOrEq k Let Nc = product [i = 1, h-1] (n[i]) Let Nd = "smallest int GraterOrEq" Nc/Npe. This is the number of K-h+1-ary cubes allocated to one PE. Then PE# = "larσest int LessOrEq" (PolvEval [i = l,h-l] (x[i] ,n[if / Nd) ADDR = Base + modulo (PolyEval [i =l,h-l] (x[i],n[i]), Nd) (product [i = h, k] (n[i])) + PolyEval [i = 1, h-1] ( x[i] , n[i]) The strategy module selects an array allocation scheme for each arc linking two code blocks. That strategy is chosen which yields the best overall performance on the target machine. Best performance is defined to be the smallest execution time on the target machine, while meeting all constraints imposed by memory size limits and the number of processing elements, and considering delays caused by interprocessor communication due to nonlocal array element references and the possible splitting of code blocks among more than one processing element. The resulting time-space relationship is shown in Fig. 6c. G. Dataflow Execution Dataflow computers are based on dataflow program graphs as their model of computation. To illustrate this model, consider the well known quadratic formula for the roots of a second order algebraic equation with real coefficients 2 az + bz + c = 0 The complex roots of the quadratic are given by z = ~b— yb - 4ac 2a A program expressed in Val to compute the two complex root values is shown in Fig. 3. Note that the complex values are represented by a user defined record type having fields for the real and imaginary components. A dataflow graph for this computation is given in Fig. 4. This graph consists of nodes (or actors) 100 connected by arcs (or links) 102, with tokens (or packets) 104 being carried by the arcs and being consumed by the nodes to indicate the flow of information from prede¬ cessor nodes to successor nodes. Although the terms "tokens" and "packets" are sometimes used interchangeably, "tokens" is used in discussing the abstract dataflow model, and "packets" is used in discussing implementations of the model. The nodes respond to the presence of tokens on their input arcs by "firing" - applying nodes to ready (entry) tokens on input arcs to produce result (derived) tokens on output arcs. Because a node can fire whenever it has ready tokens on its input arcs and token-free output arcs, dataflow graphs can be configured in stages in the same manner as conventional pipelined functional units. In the static dataflow design of the present embodiment, an arc may carry no more than one token. The significance of the dataflow model regarding the present invention is that the nodes correspond to in¬ structions, the arcs to functional dependencies between the instructions in pairs, and the tokens to information generated by predecessor instructions for processing by successor instructions. As shown in Fig. 4, self-explanatory nodes that represent constants and arithmetic operators are shown as circles with such labels asΛ2, recip, neg, X , X4 , — , T, F, yθ , +, and 0. The diamond shaped node 106 with the label ___.0 is a decider that performs a test on its data input and sends the resulting boolean truth value to its successors. The circular nodes inscribed with T or F are gates that pass a data value if and only if the boolean control input matches the label. At the bottom of the graph are four merge nodes, shown as capsules 108 labelled <^ " J) . which pass one value from the specified data input for each boolean token received. Except for the merge node, all nodes behave according to the same simple firing rule: a node is enabled if and only if a token is present on each of its input arcs and there is no token on any of its output arcs. The merge node is special; it is enabled only when a boolean token is present and a data token is present at the input corresponding to the truth value carried by the boolean token (the output arc must be empty) . Although examples of program graphs and their Val language equivalents are given herein for completeness, it is not necessary to follow these examples in detail in order to understand the process that is the primary subject of this disclosure. It can be shown that graphs of the illustrated type exhibit the behavior necessary for generating one set of output data derived for each set of input data entered. Furthermore, the final configuration of tokens in the graph and the values they represent is independent of the order in which enabled nodes are fired. This property, which is called determinacy, makes it possible for a functional programming language such as Val to express parallelism without suffering from the timing hazards and races that make the development and debugging of conventional multiprocessor programs very challenging. H. Operation - Examples of Program Mapping According to the Present Invention A process of the present invention now will be illustrat¬ ed by two examples in connection with Figs. 8 through 23. In Example I, we show how a specific program section is analyzed and a corresponding dataflow machine code block is construct¬ ed. Then we discuss in Example II an illustrative scientific computation and show how a well-chosen mapping strategy yields high performance on a dataflow multiprocessor. Example I Here we use a program module called Smooth to illustrate how analyzer module 142 specifies the construction of appro¬ priate dataflow machine code. The first step is to construct description tree 152, which contains all information about the sub-program that will be used in determining the strategy. It is convenient to express the analysis data as ranges of values written such as [4..8] , and to use problem parame¬ ters of the program text such as the parameter n in specifying the size of the data arrays in the Smooth module. Such parameters are usually integer variables and the analyzer can easily identify those that derive from program inputs and are therefore appropriate parameters for expressing the results of analysis. Of course, the formulation of program construction strategy cannot be completed and machine code construction cannot be done until any such parameters have been assigned numerical values. Fig. 8 illustrates the phases of a Smooth code block and Fig. 9 illustrates the code block itself written in Val. Fig. 10 shows the description tree for the Smooth code block. The top level node describes the forall expression. It gives the index ranges for the three-dimensional result array derived from the forall header, and has a link to the description tree node for its body. The body is a conditional expression and its description tree node simply refers to the subtrees that describe the two tests and three arms that make up the con¬ ditions. The two tests are simple boolean expressions. The description node for each of the arm expressions gives opera¬ tion counts and a characterization of all references to input arrays. In this example the index offset is zero for all references except those to array Q for index j. By "offset" we mean the difference between the index value used to access an input array and the index value of the element of the output array being computed. The description indicates that Arm-2 accesses Q with j-indexes between j-1 and j+1 and that Arm-3 uses j-indexes between j-2 and j+2. The information about offset indexing of the input arrays is summarized in the top level node. This node also shows the best that can be said about the operation counts without knowledge of how the tests in the conditional expression turn out. The extremes correspond to the case that Arm-1 is always selected and that Arm-3 is always selected. Note that the conditional arms are selected by known subranges of the integers. This allows a more informative representation of the conditional by a special type of node called a subrange node. Using this device the description tree for Smooth becomes that shown in Fig. 11. Each line in the "arm subrange" list specifies a combination of index ranges (* means no restriction, [.. ] gives a sequence and indicates a set) for which the indicated arm is chosen. Since several lines may specify the same arm, the definable index sets for an arm include any finite union or rectangular subarrays of a multidimensional array. The nodes describing the arms are just as before. This information is sufficient to compute the exact number of operations performed in an execution of Smooth. Arm Adds Multiplies Divides Evaluation Count Arm- 1 0 0 0 n 3 - ( n- 2 ) 3 Arm-2 3 5 1 2 (n-2 ) 2 Arm- 3 5 8 1 ( n- 2 ) ( n-2 ) ( n-4 ) In this example, no interaction with the user is needed to obtain a complete analysis because all needed information is available from the program text. This is likely to be true for many complete programs for scientific computation. The detailed coding of a machine code block for the Smooth function is shown in Figs. 11 and 12. A detailed explanation of this code is given in the aforementioned U.S. patent application Serial No. 885,836, filed July 15, 1986. The next steps constitute strategy formulation. It is evident that each of the three arms of the conditional are readily pipelined with a small requirement for buffer storage because the offsets of the input array indices are small and fixed. If the parameter n " is given as 100, as in the bench¬ mark computation, it is evident that the 100 X 100 X 100 X 5 result array must be stored in array memory. Since the second sweep of smoothing accesses the data in a different sequence, the two sweeps cannot communicate as a pipelined produc¬ er/consumer pair and each must run as a separate phase of the computation. Example II The program AeorSim applies the alternating direction method to the governing equations for a compressible fluid. It uses a mapping function from the cubical computational grid to the physical space such that the boundary surface of the body under study corresponds to the (1 = 1) face of the computational grid. The overall structure of the program is displayed in Figs 14 through 23. The diagrams show the flow of information among the major submodules and indicate the types and amounts of data passed between modules as large arrays. The main program code block, as shown in Figs. 14 and 15, generate the initial grid and data arrays and computes the Jacobian of the grid. This is followed by the main iteration in which the Step module is called p times to carry out the alternating direction method. Finally, the data, which has been scaled by the Jacobian to simplify the computation, is unsealed for interpretation. The Step module of Figs. 16 and 17 computes a modified grid array that reflects rotation of the body, and a new data array of physical data which is the result of advancing the solution one time step. Within the body of Step, module BC fills in the faces of the current data array with values satisfying the desired boundary conditions. Module RHS calculates the right hand side arrays of the linear systems to be solved. The Smooth module, analyzed earlier, is used to permit use of a larger time increment while ensuring stability of the computational algorithm. Modules XPass, YPass and ZPass solve the three sets of linear systems corresponding to the three spatial dimensions of the grid; they are responsible for the bulk of the computation. The XPass module is expanded in Figs. 18 and 19. Modules XM, AMat and ABCSet compute the coefficient matrices for a set of block tridiagonal equation systems which are solved by a module called Solve, details of which are omitted for simplicity. One block tridiagonal system is set up and solved for each combination of indices k and 1. Fig. 21. shows the results of program analysis as the top levels of a program description tree for AeroSim. The analysis data is expressed in terms of program input parameters n and p which define the size of the computational grid and the number of steps to be performed. A complete analysis of the various program modules yields the summary in Fig. 20, which gives operation counts, depth of pipelined code, and the sizes of the arrays generated by each module. The next step is to determine how the computation will be split into phases. Since it is evident that practically all of the computation is done by the main iteration, the resource requirements of the Step module must be considered primary. Each component of the Step module in Fig. 17 generates a large array of new data, so large (for n= 100) that it cannot be held in the data memory of the processing elements. If these arrays could be generated in the same sequence that they would be consumed by successor modules, the use of array memory might be avoided. Since this is not the case for the arrays generated by the components of Step, each module must write its result array into the array memory of the machine. This applies to arrays Gn, Ql, Q3 and SO, .. ,S3. It follows that each module in Fig. 17 must belong to a separate phase of computation and must, by itself, utilize as much of the machine's processing resources as possible. We have seen how this can be done for the Smooth module. The RHS module is amenable to similar treatment and involves about the same number of dataflow instructions and pipeline depth. Modules Spin, and BC account for such a small fraction of the computa¬ tion that their effect on overall performance is not material. Nevertheless, utilizing the parallelism available in the boundary condition module (BC) is essential, for otherwise this module would be an embarrasing bottleneck in the code. Within the XPass module Fig. 19, intermodule communica¬ tion is in a more fortunate pattern. Module XM can produce values as needed by AMat and AMat, in turn, generates the H array in the order required by ABCSet. One performance issue yet to be addressed is the start-up and shut-down times of the pipelined program modules. As shown in Fig. 22 the rate of instruction execution for a pipeline ramps up as the first work unit to enter the pipe activates successive pipeline stages. The duration of this start-up period is the depth of the pipe divided by the instruction repetition rate for the pipeline. The time interval from beginning of start-up to beginning of shut-down (the time for all work units to enter the pipe) is the number of work units fed to the pipe divided by the instruction repetition rate. If the pipeline can keep its share of the machine's processing elements busy when full, then the effi¬ ciency of the pipeline is w/ (w + d) where d is the depth of the pipeline and w is the number of work units fed to it. Note that this calculation applies separately to each copy of a pipelined code module when multiple copies are required to use the full performance of the machine. The table of Fig. 23 gives the efficiency of each compo¬ nent of Step. For example, the largest pipelines, XPass, YPass and ZPass, have a depth of 18 + 17 log n = 488, and the 2 number of work units is 100 . Since a single copy is more than sufficient to keep the machine busy, the machine is able designed to achieve about 95 percent of full performance in executing these phases of the computation. In the case of the Smooth module we noted earlier that it is necessary to load each processing element with four copies of the pipelined code to keep the machine fully busy once the pipes are full. In this case the number of work units per 3 pipe is 100 /(4 X 256) or 977, but because the pipeline depth is only 8, pipeline efficiency is better than 99 percent. The worst situation is the boundary condition computation. For 2 most of its subcomponents the number of work units is 100 , but this must be distributed over all the processing elements yielding only 37 work units per copy of the code. Since pipeline depth is 122 + 21og n = 136, its efficiency is only 21 percent. In spite of the weakness in Module BC, overall perfor¬ mance of the entire AeroSim program structure is very high. If the dataflow processing elements can achieve ten megaflops of performance apiece and if the routing network and array memories support the required traffic, then the computation for one time step will run at 95 percent utilization of the processing elements. It is designed to run in 2.7 seconds at an average rate of 2,437 megaflops.

Claims: What is claimed is: 1. A method of running a machine code program in a computer, said machine code program corresponding to a preliminary higher level program and containing one or more machine code blocks; (A) said computer comprising: (a) a plurality of memory means for storing (1) given machine code instructions having predecessor and successor machine code instructions, and (2) machine words corresponding to elements of data structure values declared by data structure definitions occurring in said preliminary higher level program; (b) a plurality of processing element means for executing said given machine code instructions, each of said machine code instructions being executed contingently on the occurrence of signals generated by the execution of certain of its predecessor and successor machine code instructions; (c) certain of said memory means and said processing element means being in local association with respect to each other and being remote from others of said memory means and said processing element means; (B) said method comprising: (a) assigning substantial replications of said machine code blocks to certain of said memory means for execution in certain phases by certain of said processing element means; (b) said machine code blocks being collections of said machine code instructions, said phases being distributions of said substantial replications of said machine code blocks over time; (c) said machine code blocks being in correspondence with certain of said data structure definitions; (d) constructing assignments of groups of said machine words to local associations of memory means and processing element means, said groups of machine words representing elements of said data structure values; and (e) operating said processing element means to execute assemblages of machine code blocks in a succession of said phases in accordance with said assignment of said groups of machine words. 2. The method of claim 1 wherein said computer is characterized by machine attribute parameters, and said machine code program is derived by translation from said preliminary higher level program in a compiler that performs linking, analysis, strategy and construct steps, said preliminary higher level code being characterized by module description trees; (a) said linking step including traversing said preliminary higher level code to produce a program description tree having program description parameters corresponding to the parameters of said module description trees; (b) said analysis step including traversing said program description tree to generate a program attribute tree having program attribute parameters corresponding to said data structure definitions; (c) said strategy step including operating on said program attribute parameters and said machine attribute parameters to produce a mapping strategy tree having mapping parameters corresponding to said data structure definitions; (d) said construct step including operating on said mapping strategy parameters and said program description parameters to produce said machine code blocks. 3. The method of claim 1 wherein said machine code program is a static dataflow program. 4. The method of claim 1 wherein said machine code program is a tagged token dataflow program. 5. The method of claim wherein said data structure values are arrays of zero or more dimensions. 6. The method of claim 5 wherein said multiprocessor is a dataflow machine with Npe processing elements (PEs) , each PE having a memory module (AM) . 7. The method of claim 5 wherein each code block is constructed to implement a data structure definition derived from said preliminary dataflow program. 8. The method of claim 5 wherein, within the body of any iteration, the code blocks corresponding to array definitions form an acyclic directed graph in which each arc represents a link by which one code block delivers an array value to another code block. 9. The method of claim 5 wherein the strategy for allocating large array values among said memory means associated with said processing element means is defined such that the dimension list of a k-dimension array value is n[i] , .. , n[k] where n[i] = High.i] - Low[i] + 1 is the subscript range for the dimension of said last- mentioned array value; and (a) said strategy involves truncation of the dimension list such as: to choose a permu¬ tation of the dimension list, to let the permuted list be p[l], .. , p[k], to choose a postfix of the list p[h], .. ,p[k] , where 1 LessEq h Less Eq k, such that the product of p[h], .. ,p[k] is less than the capacity of an array memory module, the allocation being such as to assign a number of (k - r + 1) dimension subcubes to each AM such that the array is evenly divided over the Npe AM modules; or (b) said strategy involves uniform subcubes such that, given the dimension list n[l], .. ,n[k], choose numbers a[l], .. ,a[k] such that the product of n[i]/a[i] over i is GreaterEq Npe, the strategy being to allocate some number of k-dimension cubes to each PE. 10. The method of claim 7 wherein, for best performance, the strategy component selects, for each array definition, the array allocation wheme, such that the strategy achieves the smallest execution time on said computer, while meeting all constraints imposed by memory size limits and the number of processing elements, and considering delays caused by interprocessor communication due to nonlocal array element references and the possible splitting of code blocks among more than one processing element. 11. A method for running machine code in a dataflow multiprocessor having a plurality of processing element means and a plurality of random access memory means, said method comprising the steps of: (a) allocating a first distribution of one or more assemblages of machine code blocks to a second distribution of one or more of said random access memory means to provide a stored dataflow machine program; (b) and running said stored dataflow machine program on a third distribution of one or more of said processing elements through a fourth distribution of one or more phases; (c) selected attributes of said first distribution, said second distribution and said third distribution being characterized by dimensions of space, selected attributes of said fourth distribution being characterized by the dimension of time; (d) there being a quantitative functional relationship among said attributes of said first distribution, said attributes of said second distribution, said attributes of said third distribution, and said attributes of said fourth distribution. 12. The method of claim 11 wherein said dataflow multiprocessor is characterized by machine attributes, and said stored dataflow machine program is derived by translation from a dataflow preliminary code to said dataflow machine code in a compiler that performs linking, analysis, strategy and construct steps, said dataflow preliminary code being characterized by a module description tree; (a) said linking step including traversing said preliminary dataflow code to produce a program description tree having program description parameters corresponding to the parameters of said module description tree; (e) said analysis step including traversing said program description tree to generate a program attribute tree having program attribute parameters corresponding to data structure definitions; (f) said strategy step including operating on said program attribute parameters and said machine attribute parameters to produce a mapping strategy tree having mapping parameters corresponding to said data structure definitions; (g) said construct step including operating on said mapping strategy parameters and said program description parameters to produce said distributed assemblages of machine code blocks. 13. A method for efficiently running machine code in a multiprocessor by allocation of a distribution of one or more assemblages of machine code blocks to a distribution of one or more associated memory means and processing element means for execution in a distribution of one or more phases, said multiprocessor having reference machine attribute parameters, said method comprising the steps of: (a) running particular code blocks to access arguments from and to store results in particular memory means during particular phases on particular processing element means; (b) there being quantitative functional relationships among the sizes of said code blocks in terms of numbers of bits, the sizes of said memory means in terms of numbers of locations, and the number of said processing element means; (c) said quantitative functional relationships between said machine code blocks , said array memory means and said processing element means being established by translation of a dataflow preliminary code to a dataflow machine code in a compiler that performs linking, analysis, strategy and con¬ struction steps, said dataflow preliminary code being characterized by a module description tree; (d) said linking step including traversing said module description tree to produce a program description tree having program description parameters corresponding to the parameters of said module description tree; (e) said analysis step including traversing said program description tree to generate a program attribute tree having program attribute parameters; (f) said strategy step including operating on said program attribute parameters and said reference machine attribute parameters to produce a mapping strategy tree having mapping parameters; (g) said construction step including operating on said mapping strategy parameters and said program description parameters to produce said distributed processions of machine code blocks. 14. The method of claim 13 wherein said multiprocessor has Npe processing elements (PEs) , each PE having a memory module (AM) . 15. The method of claim 13 wherein each code block is constructed to implement a data structure definition derived from said preliminary dataflow program. 16. The method of claim 13 wherein, within the body of any iteration, the code blocks corresponding to array definitions form an acyclic directed graph in which each arc represents a link by which one code block delivers an array value to another code block. 17. The method of claim 13 wherein the strategy for allocating large array values among said memory means associated with said processing element means are defined such that the dimension list of a k-dimension array value is n[i] , .. , n[k] where n[i] = High[i] - Low[iJ + 1 is the subscript range for the dimension of said last- mentioned array value. 18. The method of claim 17 wherein said strategy involves truncation of the dimension list such as: to choose a permutation of the dimension list, to let the permuted list be p[l] , .. , p[k] , to choose a postfix of the list such that p[r], .. ,p[k] , where 1 LessEq h Less Eq k, such that the product of p[h], .. ,p[k] is less than the capacity of an array memory module, the allocation being such as to assign a number of (k - r + 1) dimension subcubes to each AM such that the array is evenly divided over the Npe AM modules. 19. The method of claim 17 wherein the strategy involves uniform subcubes such that, given the dimension list n[l], .. ,n[k], choose numbers a[l], .. ,a[k] such that the product of n[i]/a[i] over i is GreaterEq Npe, the strategy being to allocate some number of k-dimension cubes to each PE. 20. The method of claim 17 wherein, for best performance, the strategy component selects, for each array definition, the array allocation wheme, such that the strategy achieves the smallest execution time on said computer, while meeting all constraints imposed by memory size limits and the number of processing elements, and considering delays caused by interprocessor communication due to nonlocal array element- references and the possible splitting of code blocks among more than one processing element. 21. In a method of running a compiled program in a digital multiprocessor: (A) said multiprocessor having firmware memory means, random access memory means, a plurality of processing element means, an externally accessible input/output means, control means and routing means for communication thereamong in fine grain operations by which any one of a large fraction of said processing elements can communicate with any other of a large fraction of said processing elements; (B) said random access memory means including a global memory means containing a plurality of regional memory means, a selected association of one of said processing element means and one of said regional memory means being local with respect to each other and remote with respect to other associations of said regional memory means and said processing element means; (C) said firmware memory means permanently recording an instruction set of opcodes by which said plurality of process¬ ing elements operate arithmetically and logically on operands from said global memory means to produce results in said global memory means; (D) the number of said processing element means and the sizes of said regional memory means constituting components of a machine attribute set; (E) said compiled program being derived by scanning the text of a source program to produce a source lexical sequence and parsing said source lexical sequence to produce a source syntactic tree, said source syntactic tree having a structure in which nodes are in correspondence with certain blocks of source program text that denote functional relationships of said results to said arguments, said source syntactic tree being characterized by linked source code blocks of which a majority represent arrays; (F) said method comprising running machine code in said multiprocessor by allocation of a distribution of one or more processions of machine code blocks to a distribution of a plurality of associated array memories and processing elements for parallel execution in a distribution of one or more acyclic phases, said multiprocessor have reference machine attribute parameters, said method comprising the steps of: (a) running particular code blocks from particular array memories during particular phases on particular processing elements; (b) there being quantitative functional relationships between said machine code blocks, said array memories and said processing elements, said quantitive functional relationships being established by translation of a dataflow preliminary code to a dataflow machine code in a compiler that performs linking, analysis, strategy and construction steps; (c) said linking step including scanning and parsing said preliminary dataflow code to produce a program descrip¬ tion tree having program description parameters corresponding to linked graphs; (d) said analyzing step including traversing said program description tree to generate a program attribute tree having program attribute parameters; (e) said strategy step including operating on said program attribute parameters and said reference machine attribute parameters to produce a mapping strategy tree having mapping parameters; (f) said construction step including operating on said mapping strategy parameters and said program description parameters to produce said distributed processions of machine code blocks, (g) whereby partitioning the code blocks into phases is such as to achieve a match of memory and processing requirements of each phase to the memory and processing resources of the machine. 22. A compiler for producing machine code for a multi¬ processor for allocation of a distribution of one or more processions of machine code blocks to a distribution of a plurality of associated array memories and processing elements for parallel execution in a distribution of one or more phases, said multiprocessor have reference machine attribute parameters, said compiler comprising components for: (a) allocating particular code blocks to access inputs and store results in particular memories during particular phases on particular processing elements; (b) there being quantitative functional relationships between the sizes of said machine code blocks in terms of numbers of bits, the sizes of said array memories in terms of numbers of locations, and the number of said processing elements, (c) said quantitive functional relationships being established by translation of a dataflow preliminary code to a dataflow machine code by said compiler, said compiler comprising a linking module, an analysis module, a strategy module and a construct module; (d) said linking module scanning and parsing said preliminary dataflow code to produce a program description tree having program description parameters corresponding to linked graphs; (e) said analyze module traversing said program descrip¬ tion tree to generate a program attribute tree having program attribute parameters; (f) said strategy module operating on said program attribute parameters and said reference machine attribute parameters to produce a mapping strategy tree having mapping parameters; (g) said construct module operating on said mapping strategy parameters and said program description parameters to produce said distributed processions of machine code blocks. 23. A method of running a machine code program in a computer, said machine code program corresponding to a preliminary higher level program and containing one or more machine code blocks; (A) said computer comprising: (a) memory means for storing (1) given machine code instructions having predecessor and successor machine code instructions, and (2) machine words corresponding to data structure values declared by data structure definitions occurring in said preliminary higher level program; (b) processing element means for executing said given machine code instructions, each being executed contingently on the occurrence of signals generated by the execution of certain of its predecessor and successor machine code instructions; (B) said method comprising: (a) assigning substantial replications of said machine code blocks for execution in certain phases by said processing element means; (b) said machine code blocks being collections of said machine code instructions , said phases being distributions of said substantial replications of said machine code blocks over time; (c) said machine code blocks being in correspondence with certain of said data structure definitions; and (d) operating said processing element means to execute assemblages of machine code blocks in a succession of said phases. 24. The method of claim 14 wherein, for best performance, the strategy component selects, for each array definition, the array allocation wheme, such that the strategy achieves the smallest execution time on said computer, while meeting all constraints imposed by memory size limits and tLe number of processing elements, and considering delays caused by interprocessor communication due to nonlocal array element references and the possible splitting of code blocks among more than one processing element. 25. The method of claim 2 wherein said preliminary higher level program is a collection of said module description trees produced by the process of scanning, parsing, checking and transforming source program modules written in a functional language. 26. The method of claim 25 wherein said functional language is Val. 27. The method of claim 26 wherein said preliminary higher level program is a collection of said module description trees produced by the process of scanning, parsing, and checking source program modules written in a non-functional programming language, and said source program modules are converted into a hierarchical set of data structure definitions using dataflow analysis. 28. The method of claim 25 wherein said non-functional language is the Fortran programming language. 29. The method of claim 2 wherein said program attribute tree has paramters that characterize said data structure values by (1) size in terms of number of elements and (2) number and kind of computational operations required for their computation. 30. The method of claim 2 wherein said mapping strategy tree has parameters that associate with each data structure definition of the corresponding program description tree: (1) an allocation scheme and (2) orders of access and generation of data structure elements; and a partition of said data structure definition into a distribution of said computational phase. 31. The method of claim 2 wherein a quantitative functional relationship holds among said machine attribute parameters, said program attribute tree parameters, and said mapping strategy tree parameters. 32. A method of running a machine code program in a computer, said machine code program corresponding to a functional preliminary higher level program; said computer comprising a plurality of memory means for storing machine code instructions having predecessor and successor machine code instructions, and machine code words corresponding to characteristics of said preliminary higher level program; a plurality of processing means for executing said given machine code instructions in reference to said machine code words, each of said machine code instructions being executed contingently on completion of the execution of certain of its predecessor and successor machine code instructions; said method comprising: (a) constructing combinations of given machine code instructions and combinations of given machine code words, said combinations of said given machine code words being related by said given machine code instructions, said combinations of machine code instructions constituting machine code blocks, certain of said machine code blocks being substantial replications of eachother; (b) said combinations of machine code words representing elements of data structure values declared by data structure definitions in said preliminary higher level program, said machine code blocks corresponding to said data structure definitions; (c) storing said assemblages of said machine code blocks in spaced locations of said memory means, said spaced locations being represented by a grid including, in intersecting relation, sets of parallel indicia and sets of series indicia; and (d) executing said machine code program in said plurality of processor means such that assemblages represented by one set of said series sets of indicia are transacted substantially by one of said processor means and assemblages represented by said parallel sets of indicia are transacted substantially in timed phases. 33. A method of running a machine code program in a computer, said machine code program corresponding to a functional preliminary higher level program; said computer comprising a distribution of memory means for storing machine code instructions having predecessor and successor machine code instructions, and machine words corresponding to characteristics of said preliminary higher level program; a plurality of processor means for executing said machine code instructions in reference to said machine code words, each of said machine code instructions being executed contingently on completion of the execution of certain of its predecessor and successor machine code instructions; said method comprising: (a) constructing machine code blocks as implementations of the computations expressed by certain data structure value definitions of said preliminary higher level program, said machine code blocks being combinations of given machine code instructions? (b) combining substantial replications of said machine code blocks into assemblages corresponding to combinations of portions of said distribution of processor means and portions of a distribution of timed computation phases; (c) the distribution of substantial replications of any machine code block in said distribution of processor means being in substantial correspondence with the assignment of given machine words to said distribution of memory means, said given machine words representing said data structure value definitions associated with said machine code blocks; (d) executing said machine code program in a timed succession of said computation phases; (e) said combination of substantial replications of machine code blocks into assemblages and said assignment of said given machine words to said distribution of memory means being chosen to induce high speed of computation by said machine code program in said computer. The strategy step includes operating on the program attribute parameters and certain machine attribute parameters to produce a mapping strategy tree having mapping parameters. The con¬ struction step includes operating on the mapping strategy parameters and the program description tree to produce a distribution of machine code blocks, assemblages of which correspond to distributed phases of the computation.

Inventors: DENNIS JACK B, DENNIS, JACK, B.
Applicants: DATAFLOW COMPUTER CORP, DATAFLOW COMPUTER CORPORATION
Application year: 1987
Main classification: G06F9
IPC codes: G06F9, G06F15