next up previous contents
Next: HelloWorld example Up: Developing SALSA Programs Previous: Developing SALSA Programs


Writing SALSA Programs

SALSA abstracts away many of the difficulties involved in developing distributed open systems. SALSA programs are preprocessed into Java source code. The generated Java code uses a library that supports all the actor's primitives -- mainly creation, migration, and communication. Any Java compiler can then be used to convert the generated code into Java bytecode ready to be executed on any virtual machine implementation (see Table 3.1).


Table 3.1: Steps to Compile and Execute a SALSA Program.
Step What To Do Action Taken
1 Create a SALSA program: Write your SALSA code
  Program.salsa  
2 Use the SALSA compiler to java salsac.SalsaCompiler Program.salsa
  generate a Java source file:  
  Program.java  
3 Use a Java compiler to javac Program.java
  generate the Java bytecode:  
  Program.class  
4 Run your program using the java Program
  Java Virtual Machine  


next up previous contents
Next: HelloWorld example Up: Developing SALSA Programs Previous: Developing SALSA Programs
Wei-Jen Wang
2007-11-28