Jason Dsouza
2f8f620f9f
Add Matrix Strategy
2021-05-15 13:51:33 +02:00
Christoffer Lerno
87a91b25e5
Add --version and -V
2021-05-15 03:23:31 +02:00
Christoffer Lerno
729e26d37c
Test both release and debug.
2021-05-13 21:23:24 +02:00
Christoffer Lerno
a67360daf5
Fixup of codegen.
2021-05-13 19:12:50 +02:00
Christoffer Lerno
ef69a2b478
Fix avoiding accidental pthread_join.
2021-05-13 18:45:57 +02:00
Christoffer Lerno
a8c3210c25
Disable PTHREADS on non Mac
2021-05-13 18:14:53 +02:00
Christoffer Lerno
3b0a2579e8
Take parameters -pic -pie from commandline.
2021-05-13 15:30:57 +02:00
Christoffer Lerno
460c0d04d7
Generic modules.
2021-05-12 17:25:59 +02:00
Christoffer Lerno
c907b52cd1
Fix arrays and vector debug information.
2021-05-11 14:58:21 +02:00
Christoffer Lerno
9b86b00834
Compilation is now done with each module compiled together.
2021-05-11 14:58:21 +02:00
Christoffer Lerno
15a65d0c97
Allow use of pthreads to parallelize codegen.
2021-05-09 19:26:05 +02:00
Christoffer Lerno
f7919edb35
Split modules into generic and normal modules on the top level. Prepare for static. Change local -> static as keyword. Add private include. Remove old sub module search.
2021-05-09 19:26:05 +02:00
Christoffer Lerno
3bd638bf77
Fixes to debug info in function pointer declarations. Incorrect x64 ABI code for structs by val. Change "Compiler" to "GlobalContext" storage of all types inside. Call debug symbol correct.
2021-05-02 16:42:28 +02:00
Christoffer Lerno
c6f671a6ca
A bit more global...
2021-04-29 22:44:00 +02:00
Christoffer Lerno
cd4b0bd803
Clearly check min 1 source files.
2021-04-29 20:23:10 +02:00
Christoffer Lerno
0f6f376340
Remove overread warning.
2021-04-29 18:27:09 +02:00
Christoffer Lerno
d3221981bc
Remove duplicate conditions in TOML parser.
2021-04-29 18:20:35 +02:00
Christoffer Lerno
3a465a99b2
Removing warning due to issue with LLVM headers.
2021-04-29 18:17:55 +02:00
Christoffer Lerno
5ad11ebb76
Added warnings (should be ok up to GCC 8)
2021-04-29 18:13:38 +02:00
Christoffer Lerno
aa8a773ca0
Removed unsupported warning.
2021-04-29 17:45:40 +02:00
Christoffer Lerno
dbd7d9ffa9
Updated with explicit warnings.
2021-04-29 17:36:57 +02:00
Christoffer Lerno
fd08c5c980
Revert "Remove suppressed warning."
2021-04-29 17:23:46 +02:00
Christoffer Lerno
c4585f9bbd
Remove suppressed warning.
2021-04-29 17:18:50 +02:00
Christoffer Lerno
41a07f40a9
Suppress warning.
2021-04-29 16:50:38 +02:00
Christoffer Lerno
0e076234ca
Set stdlib library for testing and profit. Fix bugs when using void* to step. Make constants private linkage. Compare pointers using unsigned comparison without conversion. Use manual ptrdiff code. Fix issue returning "void!". Unify pointers when doing Foo* - void*. Allow comparing for example void* < Foo*
2021-04-29 03:12:25 +02:00
Christoffer Lerno
01f7343945
Parsing of interface. Fix to unpacking arraypointers. Fix accidental unsplat.
2021-04-29 03:12:25 +02:00
Christoffer Lerno
21d4ecf9b4
Splat/unsplat/typed varargs
2021-04-28 14:33:26 +02:00
Christoffer Lerno
12fbaf476b
Small improvements to macro parsing and checking.
2021-04-28 14:33:26 +02:00
mathis2003
ee307f2dba
minor change in checking for unclear precedence
...
Previously the function which is now named "unclear_op_precedence()" used to have an extra not operator when an unclear precedence was found, and then there was also a not operator in the if statement checking for unclear precedence. This was harder to read and having two not operators after each other is totally redundant.
2021-04-17 17:38:19 +02:00
Christoffer Lerno
5a7c174aa5
Suppress some warnings on GCC
2021-04-16 01:30:26 +02:00
data-man
44bbe1a690
Don't show the target list twice
2021-04-15 20:28:10 +02:00
Christoffer Lerno
7f3963cbc5
Add -lm linking flag.
2021-04-14 15:07:11 +02:00
Christoffer Lerno
f028bc274f
Use the platform linker by default, which will just be a call to "cc" (the Win solution will be done later)
2021-04-14 14:29:03 +02:00
Christoffer Lerno
9de932a24d
Simplify getting dir and filename.
2021-04-14 11:24:53 +02:00
Christoffer Lerno
fe3f7d427e
Updates to the linker, tentative x86_64 support (and MacOS)
2021-04-13 23:35:31 +02:00
Christoffer Lerno
a3990f1b3d
Add lib path to linux, make PIE use RelocPIC
2021-04-10 14:08:45 +02:00
Christoffer Lerno
8e9ec35914
Correct default PIC/PIE
2021-04-10 13:18:25 +02:00
Christoffer Lerno
bf36dbc4e7
Trying to improve linux linking.
2021-04-10 13:11:09 +02:00
Christoffer Lerno
bad3ea124d
Updated README
2021-04-10 13:11:09 +02:00
Christoffer Lerno
954a90dae3
Fix of arch target. Experimental linker support.
2021-04-09 18:47:41 +02:00
Christoffer Lerno
3a74c4adfc
Update to python test framework.
2021-04-07 11:14:55 +02:00
Christoffer Lerno
4536d3a270
Fix of missing O3 setting. Added safe/unsafe mode. Updated trapping on negation. Added trap on negative shift & shift exceeding bit width. Added trap on div by zero, rem by zero. Prevent UB on negative shift/shift exceeding bit width. Use ordered FP comparison.
2021-04-07 11:14:55 +02:00
Christoffer Lerno
4210f1ccb2
Some work on vararray. Fix span on post unary. Updated error recovery. Updated return analysis to handle void functions. "while" now disallows error prone next line statement. Working on auto linking. Failable load optimized. Optimization and corrections for call returns + documentation.
2021-04-05 23:34:40 +02:00
Christoffer Lerno
1bc4400246
Incorrectly removed %=. Now restored with tests.
2021-03-17 19:39:55 +01:00
Christoffer Lerno
07595df412
Change cast and int rules: constant folding always starts. Promotion using left side on all operands to bit width. Implicit narrowing to max size on right hand side.
2021-03-17 18:25:00 +01:00
mathis2003
8a7f37e4d3
Test for explicit parentheses error
2021-03-15 16:56:44 +01:00
mathis2003
fe212a5a33
Forced parentheses on unclear precedence ( #109 )
...
forced parentheses to resolve issue #97
2021-03-15 16:55:35 +01:00
Christoffer Lerno
6f922b85a1
Removed path in judge0 that no longer worked. Removed link to r/ProgrammingLanguages since there is no longer a C3 channel there.
2021-03-10 16:27:40 +01:00
Ananda Umamil
52ac783e6c
Fix build on x86_64-linux-musl
2021-03-07 18:34:42 +01:00
Christoffer Lerno
1d50beb330
Work on constant string and inferred array sizes.
2021-02-03 23:01:37 +01:00