Unit testing generated C code #141
Replies: 2 comments 3 replies
-
Generate assembly code of the nelua code Generate assembly code of the C code generated by nelua |
Beta Was this translation helpful? Give feedback.
-
The And when you are testing the execution of a Nelua program, you are actually testing execution of C code, because Nelua gets translated to C. Thus, if your Nelua code is working correctly, this means that the generated C code is also working correctly. |
Beta Was this translation helpful? Give feedback.
-
When we build Nelua from source ourselves, we can test it via
make test
which goes through a series of steps to validate its code and libraries.My question is, how can we unit test the generated C code to verify it produces accurate output?
I'm not talking about sanitizing the code; we already have a flag for that.
Beta Was this translation helpful? Give feedback.
All reactions