diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6709181 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.vscode +example \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json deleted file mode 100644 index 9a0a2f5..0000000 --- a/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "configurations": [ - { - "name": "Mac", - "includePath": [ - "${workspaceFolder}/**" - ], - "defines": [], - "macFrameworkPath": [ - "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" - ], - "compilerPath": "/usr/bin/clang", - "cStandard": "c17", - "cppStandard": "c++17", - "intelliSenseMode": "macos-clang-arm64" - } - ], - "version": 4 -} \ No newline at end of file diff --git a/Makefile b/Makefile index 091f376..6ef4478 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -BINARY=test +BINARY=example CC=gcc CFLAGS=-I. diff --git a/src/main.c b/src/main.c index 60fc1ae..96aa3cd 100644 --- a/src/main.c +++ b/src/main.c @@ -4,5 +4,5 @@ #include int main() { - printf("%s\n^ output\n", qbe_emit(Deftgt, sl_c_str(*sl_read_file("file.ssa")))); + printf("%s\n", qbe_emit(Deftgt, sl_c_str(*sl_read_file("file.ssa")))); } \ No newline at end of file diff --git a/test b/test deleted file mode 100755 index 3fc07b1..0000000 Binary files a/test and /dev/null differ