I am having a bit of a problem with constant arrays on the ds80c400 i.e. char y[] = {1,2,3,4}; Note: the ds80c400 has a 16M contiguous memory map. example 1: in the following code the array is placed in segment CONST.
#include <stdio.h> char foo (int x) { char y[] = { 1,2,3,4}; return(y[x]); }
#include <stdio.h> char foo (int x) { char y[] = { 1,2,3,4}; printf("1234%d",1); return(y[x]); }