Home  |  Buy on line  |  Contact us  |  Terms & Conditions  | 
  



New FOX Board G20



Buy on-line


FOX Board G20
FOX Board LX832
Easy Guardian
SMS FoxBox
Acme Systems srl




FOX Board LX832 is discontinued
To be informed about its availability and prices please CONTACT US
To know more about the new FOX Board G20 GO HERE

Webcompiler example

This article explains how to compile the classic "Hello World !" example program in C language using Acme Systems WebCompiler, a Web front end to the Cris compiler, and how to run it on the FOX Board

With WebCompiler you can compile simple C programs from the Web with no need to install the Axis SDK.


WebCompiler startup page
Webcompiler

Compile "Hello World !" example

"Hello World !" is the first example used on every tutorial to introduce any programming language. Its scope is to show that something is working in an easier and faster way. The following is the C language version of "Hello world !":
#include "stdio.h"

int main(void) {
 printf("Hello world !\n");
 return 0;
}

Compiling steps

  • Save helloworld.c on your working directory.
  • Go to the WebCompiler start up page on (http://www.acmesystems.it/?id=200)
  • Press Browse and select the helloworld.c file from your hard disk then press the button Compile.
  • After a few seconds a list of compiler messages should appear along with a direct link to download the executable code (in this case helloworld.out).
  • Copy the executable code helloworld.out to the directory /var of your FOX Board using your FTP client.
  • Open a Telnet session with FOX Board and go to the /var directory (cd /var).
  • Indicate to Linux that helloworld.out is an executable file with the command:
    # chmod +x helloworld.out
    
  • Run the helloworld.out program typing:
    # ./helloworld.out
    

Related links