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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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


List of 35 messages in thread
TopicAuthorDate
ATMega128 but new to 8052 (help)            01/01/70 00:00      
   general and specific            01/01/70 00:00      
      ATMega128 and 8051 (memory limit?!)            01/01/70 00:00      
         On memory sizes            01/01/70 00:00      
      ATMega128 and 8051 (memory limit?!) 2            01/01/70 00:00      
         Not a job for an 8051, then?            01/01/70 00:00      
   Heresy: Why not just use two AVRs?!            01/01/70 00:00      
      Reasons for not 2 ATMEL            01/01/70 00:00      
         This board            01/01/70 00:00      
            code and data space            01/01/70 00:00      
         Memory Measures            01/01/70 00:00      
         digikey, mouser            01/01/70 00:00      
         RE: the memory ammount I need ?!            01/01/70 00:00      
   128k flash + 4k SRAM + 4k eeprom            01/01/70 00:00      
      Memory and Chip            01/01/70 00:00      
         Memory Size            01/01/70 00:00      
            not free - but almost so            01/01/70 00:00      
         comparing the ATMega128 to the 8051f120            01/01/70 00:00      
         code memory limitations and OS            01/01/70 00:00      
            if it's just the internal RAM which is the concern...            01/01/70 00:00      
               NMIY-0031 link and more details....            01/01/70 00:00      
                  code memory limits            01/01/70 00:00      
   8052 stack in external RAM            01/01/70 00:00      
   8052 lacks of i2c?            01/01/70 00:00      
   8052 16 bit version?            01/01/70 00:00      
      two posts answered in one            01/01/70 00:00      
         f120            01/01/70 00:00      
            not much detail ???            01/01/70 00:00      
               8 bitter            01/01/70 00:00      
                  not the 'data short', the 'data sheet'            01/01/70 00:00      
                     Choosed! :-)            01/01/70 00:00      
                  stack might mean many things            01/01/70 00:00      
                     About stack            01/01/70 00:00      
                        there is a lot of magic in compilers            01/01/70 00:00      
                  The Hardware Stack            01/01/70 00:00      

Back to Subject List