[Vm-dev] building plugins outside the tree

Eliot Miranda eliot.miranda at gmail.com
Tue Mar 20 18:18:21 UTC 2018


On Tue, Mar 20, 2018 at 11:10 AM, K K Subbu <kksubbu.ml at 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
>



-- 
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180320/60c59887/attachment-0001.html>


More information about the Vm-dev mailing list