You are on page 1of 2

#include <REGX51.

H>
void delay()
{
int k;
for(k=0;k<=30000;k++);
}
void main()
{
int i,j,k;
i=0x08;
j=0x10;
for(k=0;k<=3;k++)\\\\\\\\\\\\\\\\\\\\\\//////
{
P2=i+j;
delay();
i=i/2;
j=j*2;
}
}
8051 compiler
From Wikipedia, the free encyclopedia
There are various high level language compilers for 8051 or enhanced versions of
8051 from various vendors. The most popular is the C language compiler. As the
modern C compilers are efficient, assembly language is seldom used nowadays[cita
tion needed]. It is common to have a complete program written solely in C includ
ing interrupt service routines.
With the knowledge of the 8051 architecture, a beginner can quickly write useful
programs for 8051 in C, totally bypassing the need to know the 8051's assembly
language instructions. This is a proven approach for learning 8051 programming.
Contents [hide]
1 C compilers
2 Pascal compiler
3 Others
4 See also
5 External links
C compilers[edit]
SDCC is a completely free (GPL), but lacks an integrated development environment
. Although, it is very easy to incorporate it to most Open-Source IDE.
A free example of integration is the MCU 8051 IDE.
Proprietary payware:
Keil
Raisonance
IAR Systems
mikroC, by Mikroelektronika
Tasking
Crossware
Dunfield, only through BiPOM Electronics
Wickenhuser
SPJ Embedded Technologies, India
Pascal compiler[edit]
Turbo51 (free)
mikroPascal, by Mikroelektronika (commercial)
Others[edit]
Forth, BASIC
See also[edit]
8051 information
External links[edit]
SDCC
Keil C
IAR Systems C/C++
MikroElektronika C
Tasking C
Bascom51 Basic compiler
turbo51 Pascal
Forth
Categories: CompilersCross-compilers
Navigation menu
Create accountLog inArticleTalkReadEditView history
Main page
Contents
Featured content
Current events
Random article
Donate to Wikipedia
Wikimedia Shop
Interaction
Help
About Wikipedia
Community portal
Recent changes
Contact page
Tools
What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Wikidata item
Cite this page
Print/export
Create a book
Download as PDF
Printable version
Languages
Edit links
This page was last modified on 13 April 2014 at 22:34.
Text is available under the Creative Commons Attribution-ShareAlike License; add
itional terms may apply. By using this site, you agree to the Terms of Use and P
rivacy Policy. Wikipedia is a registered trademark of the Wikimedia Foundation, I
nc., a non-profit organization.
Privacy policyAbout WikipediaDisclaimersContact WikipediaDevelopersMobile viewWi
kimedia Foundation Powered by MediaWiki

You might also like