8
Embedded Linux Quick Start Guide
LPC3250-Stick
Trying it out
The Hello World program
#include <stdio.h>
int main(void) {
printf ("Hello, ARM\n");
return 0;
}
$ export PATH=/usr/local/angstrom/arm/bin:$PATH
$ arm-angstrom-linux-gnueabi-gcc hello-arm.c -o hello-arm
$ file hello-arm
hello-arm: ELF 32-bit LSB executable, ARM, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped
Kommentare zu diesen Handbüchern