feat: add files

This commit is contained in:
2020-09-30 23:52:26 +08:00
parent 820a5707fa
commit 8f8bc6eca9
5 changed files with 15 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@ target/
99.htm
wasm/pkg/
node_modules/
*.o
# These are backup files generated by rustfmt
**/*.rs.bk
+5
View File
@@ -0,0 +1,5 @@
#include <stdio.h>
void greet(const char *name) {
printf("Hello, %s!\n", name);
}
+1
View File
@@ -0,0 +1 @@
gcc -Wall -c greet.c
+6
View File
@@ -0,0 +1,6 @@
extern void greet(const char *name);
int main(void) {
greet("stars");
return 0;
}
+2
View File
@@ -0,0 +1,2 @@
gcc -Wall -c main-greet.c
gcc main-greet.o greet.o -o main-greet