# k230_linux_sdk Developing helloworld

## Compile the first program hello world

Create a hello.c file with the following content

```c
//hello.c file content
#include <stdio.h>
int main()
{
    printf("Hello, World!\n");
    return 0;
}
```

Compile the program

```shell
/opt/toolchain/Xuantie-900-gcc-linux-6.6.0-glibc-x86_64-V3.0.2/bin/riscv64-unknown-linux-gnu-gcc hello.c  -o hello
```

Copy the hello file to the development board and execute it. You can see the output is correct

```bash
[root@canaan ~ ]#./hello
Hello, World!
[root@canaan ~ ]#
```

>You can copy the elf file to the development board via rz, scp, adb shell, or mtp
