Page 1 of 1
HOW BIG MUST BE A STACK TO PASS PARAMETERS VIA A CALL GATE!!
Posted: Mon Jun 30, 2003 11:00 pm
by pepito
sorry...
pepito
RE:HOW BIG MUST BE A STACK TO PASS PARAMETERS VIA A CALL GAT
Posted: Mon Jun 30, 2003 11:00 pm
by mikeleany
That really depends on the functions being called. You need enough space to store your old stack pointer and stack segment selector, all the parameters that you pass, the instruction pointer and code segment selector, any other registers you modify and any extra data your functions store on the stack. In addition, you will have to provide space for any other functions called by the functions referenced by your call gate. Also, you must allow space for any interrupts that could occur that aren't separate tasks. You could go through and figure out exactly what the worste case scenario is, but that would really be a waste of time. Just guess, and make sure you're guessing high rather than low (but don't guess so high that you use up all your memory). Personally, I'm using 4KB (at least for now).
RE:HOW BIG MUST BE A STACK TO PASS PARAMETERS VIA A CALL GAT
Posted: Wed Jul 02, 2003 11:00 pm
by pepito
Thank you very much!
I really appreciate your response...
pepito