summaryrefslogtreecommitdiff
path: root/riscv/riscv-probe/examples/hello
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/riscv-probe/examples/hello')
-rw-r--r--riscv/riscv-probe/examples/hello/hello.c6
-rw-r--r--riscv/riscv-probe/examples/hello/rules.mk1
2 files changed, 7 insertions, 0 deletions
diff --git a/riscv/riscv-probe/examples/hello/hello.c b/riscv/riscv-probe/examples/hello/hello.c
new file mode 100644
index 0000000..d65ed6a
--- /dev/null
+++ b/riscv/riscv-probe/examples/hello/hello.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+ printf("hello\n");
+}
diff --git a/riscv/riscv-probe/examples/hello/rules.mk b/riscv/riscv-probe/examples/hello/rules.mk
new file mode 100644
index 0000000..4d43f63
--- /dev/null
+++ b/riscv/riscv-probe/examples/hello/rules.mk
@@ -0,0 +1 @@
+hello_objs = hello.o