titzer / virgil

A fast and lightweight native programming language
1.2k stars 42 forks source link

[exp] struct normalization added #126

Closed syrusua-t closed 1 year ago

syrusua-t commented 1 year ago

Hi Dr.Titzer,

All tests except for write_enum passes, let me know if there's any questions.

Best Yunqing

syrusua-t commented 1 year ago

Hi Dr.Titzer,

The changes are made accordingly. Let me know if there's any other issues. I'm happy to fix them.

Best Yunqing

titzer commented 1 year ago

Also, please run the test. bash script in the test/struct/ directory. It runs on all the platforms, which show some of the issues that result from mismatches in int vs long.

syrusua-t commented 1 year ago

Hi Dr.Titzer,

The changes are made accordingly. However, when running test.bash, there're too many errors, many of them are like not executable and unexpected opcode RefStructGetField and unknown type: Ref<S>. I probably need some help to fix those issues. Let me know what you think. I can still work on the project this weekend.

Best, Yunqing

titzer commented 1 year ago

Ok, I think let's merge this in its current state for now and discuss.