diff options
| author | Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> | 2024-03-27 06:43:38 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com> | 2024-03-27 06:43:38 +0100 |
| commit | 69b78ac22d04b56a9882e845230a1df27d9af9a9 (patch) | |
| tree | 21460bc13551cdd2d3bea43b71937066cccd3469 /Examples/ExampleCDialect.c | |
| parent | 25b10ab01106edd154ea3c4a5806b43d795e9d10 (diff) | |
IMP: See below, important changes.
Fix C RISC Compiler, moved AsmKit.cc and String.cc into Sources/
- C Compiler: now supports if statements and fixed code generation.
- Cleaned up AsmKit AMD64.hpp from useless macros.
Signed-off-by: Amlal El Mahrouss <113760121+Amlal-ElMahrouss@users.noreply.github.com>
Diffstat (limited to 'Examples/ExampleCDialect.c')
| -rw-r--r-- | Examples/ExampleCDialect.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Examples/ExampleCDialect.c b/Examples/ExampleCDialect.c new file mode 100644 index 0000000..ed03b66 --- /dev/null +++ b/Examples/ExampleCDialect.c @@ -0,0 +1,11 @@ +int main(int argc, char const *argv[]) +{ + int* foo = 0x1000; + + if (foo == 57) { + *foo = 5; + return foo; + } + + return 57; +} |
