Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi Sivamit,
When we define a variable as register, the compiler arranges for the variables to be stored in microcontroller registers rather than allocating storage on a stack (as with variables declared auto). This makes accessing their values very quick, usually much quicker than if the variables were on a stack.
But the compiler may decide not to store the variables in microcontroller registers.
Hi Vhn,
Thanks for your reply.
But do we have separate data memory ( to store auto or static variables) other than CPU registers to store variables in a MICROCONTROLLER.
Sorry I know only assembly language programming for uCs. I never used register or auto definitions in my program.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.