Static array is allocated in undefined area
Hi all.
In the following code the array 'splitbuf' is allocated outside any of the output sections defined by my linker command file.
Code:
#define QMFB_SPLITBUFSIZE_BATCH (8192/JPC_BATCH_SIZE) .
typedef struct {
jpc_fix_t vec[JPC_BATCH_SIZE];
} jpc_batch_t;
static void jpc_qmfb1d_split_batch(jpc_fix_t *startptr, int startind, int endind,
register int step, jpc_fix_t *lstartptr, int lstartind, int lendind,
jpc_fix_t *hstartptr, int hstartind, int hendind)
{
jpc_batch_t splitbuf[QMFB_SPLITBUFSIZE_BATCH];
.....
.....
I should mean that I have set the stack size sufficiently large, so how come it is not allocated there?
Regards,
Esben.