Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/16/03 23:48
Read: times


 
#36597 - RE: Memory models & Keil
Hi Stephane,

the linker generate always an error, if the data segment was exceeded.
But on my C51 version the file startup.a51 reserve only 1 byte as stack, which was definitively to less.

Thus I modified the startup.a51 in this way, that now minimal 16 bytes for the stack reserved. This value I found sufficient on most of my applications.
Then I get always an error message, if less than 16 bytes remaining for the stack.


Except you have a multitasking kernel, I'm in doubt, that to less memory exist for parameter passing, since only one function can be called at the same time.

Furthermore you should no more than 3 or 4 parameters passing to a function.
If you need more, it was many more effective to give only a pointer to the parameter list.
Also such a pointer can point to paramters inside the idata, pdata, xdata or code space.


Peter


List of 10 messages in thread
TopicAuthorDate
Memory models & Keil            01/01/70 00:00      
RE: Memory models & Keil            01/01/70 00:00      
RE: Memory models & Keil            01/01/70 00:00      
RE: Memory models & Keil            01/01/70 00:00      
RE: Memory models & Keil            01/01/70 00:00      
RE: Memory models & Keil            01/01/70 00:00      
RE: Memory models & Keil            01/01/70 00:00      
RE: Memory models & Keil            01/01/70 00:00      
RE: Memory models & Keil            01/01/70 00:00      
RE: Keil Code (sic) Browser            01/01/70 00:00      

Back to Subject List