Open schorg opened 1 year ago
It is not a bug, it is a feature which, however, confuses even those who introduced it years ago ;-)
Can't remember the reason. Can you elaborate on this
Before pushing to master, did you check all the code gen tests? With your commit all of them should be broken, if I remember correctly
The test program and the blech.c are tightly coupled so instead of including the header and compiling to C files, we directly include the code and you only need to compile the test program. Additionally compiling the blech.c is what raised the warnings.
Created a branch for this. The issue creates problems when compiling the C code to WebAssembly. I will look into the code generation tests, before I do a pull request
Ah sorry, did not see the new branch when I clicked on the commit
The Blech compiler automatically generates a test program -
blech.c
by default - with the following command lineCompiling all generated C-files generates duplicate symbol warnings.
Reason: The EntryPoint file
control.c
is included as acontrol.c
instead ofcontrol.h
intoblech.c
.I am on it.