??? 06/13/08 12:59 Read: times |
#155852 - there is a lot of magic in compilers Responding to: ???'s previous message |
A few organisational things first... Please fill in the location in your profile - it might help to suggest you "local resources". Also, please note the presence of the "quote" button, helps distinguishing the questions and answers.
I said:
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:
YEs, it is that I meant. 8052 doesnt follow that fashion???
Atmega128 programmed using avrgcc uses stack. How local variables and auto variavles and parameters works on 8051? All variabls and parameters are globals?! There is nothing like variables, parameters etc. on '51. It's the compiler which organizes the data, not the microcontroller. Most '51 compilers let you chose where to place which class of variables - including default internal stack, internal and external memory "statically", simulated stack in external memory - defaulting to what you would call "all variables static in internal memory", which allows to fit small programs within the microcontroller with no externally added memories - which is the primary task of a microcontroller anyway. Alex said:
Please, feel free to purpose me some 8 or 16 bit microprocessors that are stack oriented if all of you know them Oh yes, you finally want micro*processors* - check out the best of 8-bitters ever, Z80. JW |