diff --git a/blinky/project.json b/blinky/project.json index 932ef50..c51b331 100644 --- a/blinky/project.json +++ b/blinky/project.json @@ -8,7 +8,7 @@ // Libraries to use for all targets. "dependencies": [ ], // Authors, optionally with email. - "authors": [ "John Doe " ], + "authors": [ "Khwezi Mngoma " ], // Version using semantic versioning. "version": "0.1.0", // Sources compiled for all targets. @@ -33,8 +33,15 @@ // Executable or library. "type": "executable", // Additional libraries, sources - // and overrides of global settings here. + // and overrides of global settings here. }, + "avr": { + "type": "executable", + "triple": "avr-atmel-none", + "cpu": "atmega328p", + "sources": ["src/*.c3"], + "linker-flags": ["-Tdata=0x800100", "-mmcu=atmega328p"] + } }, // Global settings. // CPU name, used for optimizations in the LLVM backend. diff --git a/helloworld/.gitignore b/helloworld/.gitignore deleted file mode 100644 index 3c0160d..0000000 --- a/helloworld/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -build/ -out/ diff --git a/helloworld/LICENSE b/helloworld/LICENSE deleted file mode 100644 index e69de29..0000000 diff --git a/helloworld/README.md b/helloworld/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/helloworld/docs/.gitkeep b/helloworld/docs/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/helloworld/helloworld b/helloworld/helloworld deleted file mode 100755 index 3b49e01..0000000 Binary files a/helloworld/helloworld and /dev/null differ diff --git a/helloworld/lib/.gitkeep b/helloworld/lib/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/helloworld/project.json b/helloworld/project.json deleted file mode 100644 index e0569ff..0000000 --- a/helloworld/project.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - // Language version of C3. - "langrev": "1", - // Warnings used for all targets. - "warnings": [ "no-unused" ], - // Directories where C3 library files may be found. - "dependency-search-paths": [ "lib" ], - // Libraries to use for all targets. - "dependencies": [ ], - // Authors, optionally with email. - "authors": [ "Khwezi Mngoma " ], - // Version using semantic versioning. - "version": "0.1.0", - // Sources compiled for all targets. - "sources": [ "src/**" ], - // Test sources compiled for all targets. - "test-sources": [ "test/**" ], - // C sources if the project also compiles C sources - // relative to the project file. - // "c-sources": [ "csource/**" ], - // Include directories for C sources relative to the project file. - // "c-include-dirs": [ "csource/include" ], - // Build location, relative to project file. - "build-dir": "build", - // Output location, relative to project file. - "output": "build", - // Architecture and OS target. - // You can use 'c3c --list-targets' to list all valid targets. - // "target": "windows-x64", - // Targets. - "targets": { - "helloworld": { - // Executable or library. - "type": "executable", - // Additional libraries, sources - // and overrides of global settings here. - }, - }, - // Global settings. - // CPU name, used for optimizations in the LLVM backend. - "cpu": "generic", - // Optimization: "O0", "O1", "O2", "O3", "O4", "O5", "Os", "Oz". - "opt": "O0" - // See resources/examples/project_all_settings.json and 'c3c --list-project-properties' to see more properties. -} \ No newline at end of file diff --git a/helloworld/resources/.gitkeep b/helloworld/resources/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/helloworld/scripts/.gitkeep b/helloworld/scripts/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/helloworld/src/.gitkeep b/helloworld/src/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/helloworld/src/main.c3 b/helloworld/src/main.c3 deleted file mode 100644 index ec1a889..0000000 --- a/helloworld/src/main.c3 +++ /dev/null @@ -1,10 +0,0 @@ -module helloworld; - -import std::io; - -fn int main(String[] args) -{ - io::printn("Hello, World!"); - - return 0; -} diff --git a/helloworld/test/.gitkeep b/helloworld/test/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/helloworld2/hello b/helloworld2/hello deleted file mode 100755 index be0d75a..0000000 Binary files a/helloworld2/hello and /dev/null differ diff --git a/helloworld2/hello.c3 b/helloworld2/hello.c3 deleted file mode 100644 index 785e0c6..0000000 --- a/helloworld2/hello.c3 +++ /dev/null @@ -1,10 +0,0 @@ -module hello; - -import std::io; - -fn int main(String[] args) -{ - io::printn("Hello, World!"); - - return 0; -}