On Tue, Mar 20, 2018 at 11:10 AM, K K Subbu kksubbu.ml@gmail.com wrote:
On Tuesday 20 March 2018 11:21 PM, Eliot Miranda wrote:
Over my dead body. Look, the generated sources all start with comments that say
/* Automatically generated by
they could say
/* Automatically generated by ..... DO NOT EDIT */
Is it necessary to generate human-readable C code?
Very very much. If one wants to debug the C, which is indeed a strong requirement, then having the generated C be readable is essential.
If the code can be filled out on a line completely, it should dissuade people from editing it while keeping the compiler happy. E.g. ------interp.c------------------------------------------- typedef struct _StackPage { char *stackLimit; char *headSP; char *headFP; char *baseFP; char *baseAddress; char *realStackLimit; char *lastAddress; int trace; struct _StackPage *nextPage; struct _StackPage *prevPage; } StackPage;
The code can be restored if necessary with indent(1).
Regards .. Subbu