"remainder of xdata"

I have a need for making a buffer, the size of which is as large as possible. I know how to do that in assembler; however, not in C. Two ways would work:

1) a pointer to the end of used xdata
2) an array my_array[MAX]

I much prefer method #1, but any method that will give me the desired result will be appreciated.

Thanks,

Erik

Parents
  • Norbert, I have experienced that the Keil will rearrange variables if you change the name of one. I had to sanitize a program where the names were totally meaningless and wanted to do that with a .hex compare to verify that I did not make mistakes. In many instances when I changed a name the sequence of the variables changed.

    If someone knew the algorithm by which this happens, I could probably find a way e. g. if they are just alphasorted I could mame it zzz. However I will not make something that may fall apart when Keil releases a new version.

Reply
  • Norbert, I have experienced that the Keil will rearrange variables if you change the name of one. I had to sanitize a program where the names were totally meaningless and wanted to do that with a .hex compare to verify that I did not make mistakes. In many instances when I changed a name the sequence of the variables changed.

    If someone knew the algorithm by which this happens, I could probably find a way e. g. if they are just alphasorted I could mame it zzz. However I will not make something that may fall apart when Keil releases a new version.

Children
More questions in this forum