EgonOlsen71 / basicv2

A Commodore (CBM) BASIC V2 interpreter/compiler written in Java
https://egonolsen71.github.io/basicv2/
The Unlicense
84 stars 15 forks source link

increase in size in the generated output with latest releases #36

Closed nippur72 closed 4 years ago

nippur72 commented 4 years ago

I just switched from an old version of the compiler (2018 circa pre X16) to the latest release and I noticed an increase in size in the generated output. What before was 12794 bytes is now 13650 (with the same command line arguments).

I wonder if it's because a change in compactlevel default value, or if it's something else.

EgonOlsen71 commented 4 years ago

No, it's most likely caused by the additional floating point routines that the runtime now includes, which replace +,-,*,/ and SQR with faster ones. You can compile with /xfloatopt=false to disable them.

nippur72 commented 4 years ago

thank you