??? 06/13/08 12:26 Modified: 06/13/08 12:27 Read: times |
#155848 - stack might mean many things Responding to: ???'s previous message |
Alex Cos said:
I meant the main stack, the stack of the operating system (of the main function). I dont mean the extra thread stacks (pthread_create). I have no idea what are you talking about. However, there are many notions of "stack", for example, most "big processor" *compilers* use stack for local/auto variables and parameter passing, this is not the case with the "small 8-bitters" *compilers*. Alex Cos said:
Can the main stack be placed on external RAM? No; this is the most stringent limitation of the '51 architecture. Except the ADuC8xx and the DS80C400 family I know of no '51 derivative which can go beyond the 256-byte internal RAM limit (of which maybe 3/4 can be used for stack usually). Alex Cos said:
Yes, multithreaded is heavy on 8 bits but that makes part of the project. Not really; it's the "resource rich" thinking which makes it heavy. In fact, you might not need to have a multithreaded OS at all for TCP/IP. An another example, the already mentioned DS80C4x0 have implemented a TCP/IP stack plus a multithreading OS plus a couple of other stuff, (with a JAVA runtime environment called TINI available), all in internal 64kB ROM. You might want to check it out here. JW |