hello, If i enter the word 'register' it appears in blue, so that means it is a 'reserved keyword'.I wonder what the purpose is of this keyword 'register' and for what i can use it... Can anybody help me? (I'm a newbie in Keil C51 compiler.) thanks and greetz
"I'm a newbie in Keil C51 compiler" First, you need to read the uVision Getting Started guide, and work through the examples in it. Are you also a newbie to 'C' programming in general? The register keyword is part of the standard 'C' language - it is not a Keil extension. See this thread for recommended reference books on the 'C' language: http://www.keil.com/forum/docs/thread3911.asp C51 is pretty good at putting variables into registers when possible, so I've never had cause to use this keyword! More useful might be specifying your frequently-used and/or speed-critical variables into the DATA memory space - see the Manual If you are also a newbie with the 8051, you need to read the following documents - commonly referred to as "the bible" for the 8051: http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf
http://www.keil.com/books/8051books.asp http://www.8052.com/books.phtml http://www.8052.com/tutorial.phtml