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
Maybe if it is at the end of the last object-File to be linked: eofiles.c
unsigned char last_xdata_byte[1];
extenr unsigned char last_xdata_byte[];
L51.EXE [all the obj-files to be linked],EOFILES.OBJ
#define MAX_GAP_SIZE 0 unsigned char last_xdata_byte[MAX_GAP_SIZE+1];