Rainbow-electronics QIL-A9260-C11 Manual de usuario Pagina 12

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 34
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 11
1.2. «Hello world» application
Once you have setup your environment, you can compile the hello_world.c example by
issuing the following command.
arm-linux-gcc -o hello_world hello_world.c
#include <stdio.h>
int main(void)
{
printf("hello world\n");
return 0;
}
Note: --static option can be added to the LDFLAGS in order to link the application
statically.
Now you can download the hello_world program on the QIL-A9260 target.
From your target, you can use for example tftp as it is available in the default busysbox
configuration.
tftp -g -r hello_world « ip_address » (ip_address: host ip)
chmod +x hello_world
Now, you can start the hello_world program by issuing
# ./hello_world
hello world
#
Datasheet GSG-00006-A01 12/34
Vista de pagina 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 33 34

Comentarios a estos manuales

Sin comentarios