You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed functions called using varargs potentially not recognized as used (#203).
Fixed incorrect implementation of the strict equality operator (#206).
Fixed wrong reference counting for inline functions (#207).
Fixed compiler errors when placing enhanced comments into loops.
Fixed wrong compile-time and emulator evaluation of asin, acos and atan functions (#209).
Fixed compile-time evaluation potentially processing functions not available in current target. The only affected target was 6, where non-existent functions asin, acos, atan and packcolor could be compile-time evaluated instead of reported as non-existent.
Added
Added support for encoding results of compile-time expressions as color literals.
Added capability to automatically add a printflush message1 instruction at the end of the main program body if missing from program.
Added the auto-printflush compiler directive and --auto-printflush command-line option to control the addition of the printflush message1 instruction.
Added explanatory messages to the web app when compiling the source yields an empty program.
Changed
More precise calculations of optimization benefits in loop unrolling and call inlining.
The sensor instruction is considered deterministic if a deterministic property of a non-volatile value, which is not a linked variable, is being queried.
When clicking on an error or warning in the web application, the entire portion of the source code causing the error or warning is selected.
Most advanced optimizations were moved to the basic level. Only optimizations that might be incorrect in some contexts (such as optimizations replacing computed IDs of Mindustry items with IDs known to the compiler) are left on the advanced level.
The default optimization level in the web application is now advanced.