Saturday, April 11, 2009

Now that the SDK is installed.. Lets say "Hello Cell!"

IBM included some code for us when we installed the SDK, so lets check out the simple Hello Cell program. First we need to locate, untar, and make all the executable files in the tutorials.

  1. cd /opt/cell/sdk/src Is the directory with example code
  2. for i in ./*.tar; do tar -xf $i; done To untar every .tar in the folder
  3. make makes all the files in the directories.
  4. I got a few errors, but we'll solve those at some other time.
  5. First of all, lets test the Hello Cell program:
  6. cd /tutorial/simple/
  7. Run the 'simple' program
  8. ./simple
The output should look like:

Hello Cell (0x1818008)
Hello Cell (0x1818280)
Hello Cell (0x1818518)
Hello Cell (0x1818790)
Hello Cell (0x1818a08)
Hello Cell (0x1818c80)

No comments:

Post a Comment