diff --git a/samples/tutorial/.cvsignore b/samples/tutorial/.cvsignore new file mode 100644 index 000000000..da748bb4e --- /dev/null +++ b/samples/tutorial/.cvsignore @@ -0,0 +1,2 @@ +text.s +hello diff --git a/samples/tutorial/hello.c b/samples/tutorial/hello.c new file mode 100644 index 000000000..82695c18f --- /dev/null +++ b/samples/tutorial/hello.c @@ -0,0 +1,12 @@ +#include +#include + +extern const char text[]; /* In text.s */ + +int main (void) +{ + printf ("%s\n", text); + return EXIT_SUCCESS; +} + + diff --git a/samples/tutorial/text.s b/samples/tutorial/text.s new file mode 100644 index 000000000..173a4da0d --- /dev/null +++ b/samples/tutorial/text.s @@ -0,0 +1,4 @@ + + .export _text + _text: .asciiz "Hello world!" +