[M3devel] Compiler tests
Jay
jay.krell at cornell.edu
Wed Mar 3 04:39:55 CET 2021
Oh wow, thank you.
Please add this to the tree if you can.
I will look soon, and I will improve the diagnostics at least a little.
Again, it does compile the entire tree. Something is “unique” here. Maybe
reusing an enum member??
- Jay
On Tue, Mar 2, 2021 at 1:56 PM Darko Volaric <lists at darko.org> wrote:
> It definitely still has problems, I get
>
> ***
>
> *** runtime error:
>
> *** <*ASSERT*> failed.
>
> *** file "../src/M3C.m3", line 2523
>
> ***
>
>
> when compiling an interface at the declaration
>
>
> TYPE ExAtmX = {
> Nil,
> Sort,
> Inst,
> Bin,
> Str,
> Bool,
> Int,
> Real,
> Any,
>
> LocalLink,
> FeatLink,
> SortLink,
> RowLink,
>
> Stream,
> FeatAdr,
>
> Result
> };
>
>
> with the last C file output being
>
> /*enum_define*/typedef UINT8 T2DE88987; /*declare_enum*/
> #define T2DE88987_Nil ((UINT8)0) /*declare_enum_elt*/
> #define T2DE88987_Sort ((UINT8)1) /*declare_enum_elt*/
> #define T2DE88987_Inst ((UINT8)2) /*declare_enum_elt*/
> #define T2DE88987_Bin ((UINT8)3) /*declare_enum_elt*/
> #define T2DE88987_Str ((UINT8)4) /*declare_enum_elt*/
> #define T2DE88987_Bool ((UINT8)5) /*declare_enum_elt*/
> #define T2DE88987_Int ((UINT8)6) /*declare_enum_elt*/
> #define T2DE88987_Real ((UINT8)7) /*declare_enum_elt*/
> #define T2DE88987_Any ((UINT8)8) /*declare_enum_elt*/
> #define T2DE88987_LocalLink ((UINT8)9) /*declare_enum_elt*/
> #define T2DE88987_FeatLink ((UINT8)10) /*declare_enum_elt*/
> #define T2DE88987_SortLink ((UINT8)11) /*declare_enum_elt*/
>
>
> with
>
>
> Critical Mass Modula-3 version d5.10.0
>
> last updated: 2016-10-05
>
> compiled: 2021-02-26 09:11:48
>
> configuration: /Users/darko/Apps/cm3/bin/cm3.cfg
>
> host: AMD64_DARWIN
>
> target: AMD64_DARWIN
>
>
>
>
> On Tue, Mar 2, 2021 at 7:39 PM Jay K <jayk123 at hotmail.com> wrote:
>
>> No. You are right. I should. I will try to soon.
>> I don't remember if I ran them years ago when I wrote the C backend, but
>> I have not been running them recently.
>> That said, it does all work pretty well. The system does build itself
>> completely, and debuggability exceeds that of the integrated backend and I
>> think Darwin. 🙂
>>
>> - Jay
>>
>> ------------------------------
>> *From:* Rodney M. Bates <rodney_bates at lcwb.coop>
>> *Sent:* Friday, February 26, 2021 6:40 PM
>> *To:* m3devel <m3devel at elegosoft.com>; Jay <jay.krell at cornell.edu>
>> *Subject:* Compiler tests
>>
>> Jay, you have mentioned a couple of times suspecting a bug in the
>> C backend, as well as others. Are you periodically running the
>> scripted compiler tests? They can help a lot.
>>
>>
>> --
>> Rodney Bates
>> rodney.m.bates at acm.org
>>
> _______________________________________________
>> M3devel mailing list
>> M3devel at elegosoft.com
>> https://m3lists.elegosoft.com/mailman/listinfo/m3devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20210302/e380d69c/attachment.html>
More information about the M3devel
mailing list