This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Hi All, I have been having some difficulty with large arrays. I am using GCC 2.91.60 (ECGS 1.1.1 release) on Win95 cross compiling for 68K. (A binary distribution from object software). Problem 1: When a define a character array and intialise it with 48,980 values as follows; const unsigned char testSample[] = { 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80, <snip> 0x80,0x80,0x80,0x80,0x80,0x80,0x80,0x80}; When Iook at the generated assembler the initialisers are there and correct but there is a skip directive after the data as follows testSample: .byte 128 .byte 128 <snip> .byte 128 .byte 128 .skip 16556 .even This causes the array to be padded out to 64K. Why is this done? Also if I place the size of the array in the square brackets [] then GCC says that the array is too big (as per second problem below!) Problem 2: I also have an array of structures as follows; typedef int32 TIMTime; typedef int32 TIMDay; typedef struct { TIMTime time; TIMDay days; } TIM_TimeDays, *TIM_TimeDays_Ptr; /* Data Buffer */ typedef struct { word data; TIM_TimeDays timeStamp; } CHTrawDataPts, *CHTrawDataPtsPtr; #define USR_BUFFER_ONE_SIZE 818 CHTrawDataPts USRbufferOnePts[USR_BUFFER_ONE_SIZE]; If I set USR_BUFFER_ONE_SIZE to 820 then compiler complains as follows ./src/usrtsk.c:300: size of array `USRbufferOnePts' is too large Why is limit of 8196 (8K) imposed on this array of structures? TIA David Williams. davidwilliams@ozemail.com.au http://www.jeack.com.au ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |