Basic Structure of 8051 Programs

This post helpful to understand first basic Program writing in Embedded C programing in various IDE platform and this one can be implemented in the keil C IDE compiler

Header file

#include<reg51.h>

Main function

void main ()
{

Logic to run program infinite times

while (1)
{
Statement(s)
 }
}