Stack Overflow Error

Status
Not open for further replies.

H-Hour

Ars Scholae Palatinae
606
I have not clue what im doing wrong. I get Stack Overflow error when i call the run() runction if you want please take a look

on win xp pro/ using visual c++ but it is a *.c file

function proto:

void run(stateType state);

data struct:

typedef struct stateStruct
{
int pc;
int instrMem[NUMMEMORY];
int dataMem[NUMMEMORY];
int reg[NUMREGS];
int numMemory;
IFIDType IFID;
IDEXType IDEX;
EXMEMType EXMEM;
MEMWBType MEMWB;
WBENDType WBEND;
int cycles; /* number of cycles run so far */
} stateType;

declare:

stateType state;

call
run(state);

not really sure what that means or how i can fix it one thing i do know its going on 4:00 am and im still don't what it means. I have placed breaks up to the call to run() put as soon as a call run() i get a stack overflow error
 
Status
Not open for further replies.