next up previous contents
Next: Hello World example Up: Writing Your First SALSA Previous: Writing Your First SALSA   Contents


Steps to compile and execute your SALSA program

SALSA hides many of the details 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 byte code ready to be executed on any virtual machine implementation (see Table 3.1).


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


next up previous contents
Next: Hello World example Up: Writing Your First SALSA Previous: Writing Your First SALSA   Contents
Wei-Jen Wang 2005-10-24