SDCC produces the following error, when I compile the
Untitled.c:6: error: pointer types incompatible
I tried with the latest version:
/ds400/hc08 2.4.2 (J
un 13 2004) (MINGW32)
I simply could not figure out the right solution so that
every string is stored in code memory and every pointer
is code pointer. I think I have tried every combination.
The goal of the code would be to store "arr0" and "arr1"
strings only once and refer to them in cc as initializer.
Could you please check if it is really a bug or there is a
solution that I have missed?
Related to this issue I would like to ask if there is
a "merge duplicate strings" feature in the compiler? (The
aim of this feature is to store constant strings that are
exactly the same only once in code memory.)
By observing the complied assembly file I can see that
some strings are stored only once, but mostly stored as
many times they are initialised.