Re: "not enough memory for long line" message on Dynamic C V10.70
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
How about this:
struct parts {
float part1[1024];
float part2[1024];
float part3[1024];
float part4[1024];
};
far const struct parts x = {
{ 1, 2, 3, 4, 5},
{ 6, 7, 8, 9, 10},
{ 11, 12, 13, 14, 15},
{ 16, 17, 18, 19, 20}
};
int main ()
{
far float *crosstable = (far float *)&x;
printf ("crosstable[1024] = %.1f\n", crosstable[1024]);
}
Mircea Neacsu