#include <stdio.h> int main(void) { printf("Hello World!\n"); return 0; }
blrts_xlc hello.c -o helloIf short invocation commands have not been set up, enter the following command:
/opt/ibmcmp/vacpp/bg/9.0/bin/blrts_xlc hello.c -o hello
bgxlc hello.c -o helloIf short invocation commands have not been set up, enter the following command:
/opt/ibmcmp/vacpp/bg/9.0/bin/bgxlc hello.c -o hello
./hello
The result should be "Hello World!".
echo $?
The result should be 0.
#include <iostream> int main() { std::cout << "Hello World!" << std::endl; return 0; }
blrts_xlc++ hello.cpp -o helloIf short invocation commands have not been set up, enter the following command:
/opt/ibmcmp/vacpp/bg/9.0/bin/blrts_xlc++ hello.cpp -o hello
bgxlc++ hello.cpp -o helloIf short invocation commands have not been set up, enter the following command:
/opt/ibmcmp/vacpp/bg/9.0/bin/bgxlc++ hello.cpp -o hello
./hello
The result should be "Hello World!".
echo $?
The result should be “0”.