next up previous
Next: Optimization Up: Compilation Strategies for HPJava Previous: Type-Analysis


Translation

Currently, the HPJava translator has two phases, pre-translation and translation. Pre-translation reduces the source HPJava program to an equivalent program in a restricted form of the full HPJava language. The translation phase transforms the pre-translated program to a standard Java program. The main reason the current HPJava translator has two phases is to make the basic translation scheme simple and clear, by transforming certain complex expressions involving multiarrays into simple expressions in the pre-translation phase. Thus, the restricted form generated by the pre-translator should be suitable for being processed in the translation phase.

Unlike with HPF, the HPJava translation scheme does not require insertion of compiler-generated communications, making it relatively straightforward. The current translation schemes is documented in detail in the HPJava manual, called Parallel Programming in HPJava [7], and also in the paper [5].



Bryan Carpenter 2004-04-24