This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
acc [2017/07/09 14:11] – korshun | acc [2017/07/09 14:18] – korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{tag> | ||
====== ACC ====== | ====== ACC ====== | ||
ACC is the official ACS compiler. | ACC is the official ACS compiler. | ||
Alternative ACS compilers: [[BCC]], [[GDCC]]. | Alternative ACS compilers: [[BCC]], [[GDCC]]. | ||
+ | |||
+ | * **GitHub**: https:// | ||
===== Known bugs ===== | ===== Known bugs ===== | ||
Line 11: | Line 14: | ||
To fix this, download the April 26, 2017 development version of ACC (unofficial build for Windows): http:// | To fix this, download the April 26, 2017 development version of ACC (unofficial build for Windows): http:// | ||
- | |||
- | ==== No " | ||
- | |||
- | There is no type called '' | ||
==== Mixing strings and numbers in an array corrupts the numbers ==== | ==== Mixing strings and numbers in an array corrupts the numbers ==== | ||
Line 32: | Line 31: | ||
This bug only affects non-local arrays and happens randomly, usually only with large arrays. | This bug only affects non-local arrays and happens randomly, usually only with large arrays. | ||
- | To avoid this bug, **do not use static initialization with non-local arrays**, instead, declare an empty array and initialize it in a function: | + | To avoid this bug, **do not use static initialization with non-local |
< | < | ||
Line 45: | Line 44: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | Or, in a more beautiful way: | ||
+ | |||
+ | < | ||
+ | int SomeArray[3]; | ||
+ | int SomeArrayCount = 0; | ||
+ | |||
+ | function void AddEntry(int x) | ||
+ | { | ||
+ | SomeArray[SomeArrayCount++] = x; | ||
+ | } | ||
+ | |||
+ | function void InitArray(void) | ||
+ | { | ||
+ | AddEntry(1); | ||
+ | AddEntry(3.14159); | ||
+ | AddEntry(" | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== No " | ||
+ | |||
+ | There is no type called '' | ||