Rizwanishaq
Junior Member level 3
which language used most for programming the 8051
c
or
assembly
c
or
assembly
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Rizwanishaq said:which language used most for programming the 8051
c
or
assembly
CMOS said:C is used in most commercial applications for faster development and portability.
aupa said:To develop faster and easier i recommend to use C.
If you want to optimize the code, just you have to edit the .asm code generated by the C compiler.
Good luck!
shiv_emf said:both languages are equally imp
H_D_R said:shiv_emf said:both languages are equally imp
i agree with you...
but still it would be better if we learn first ASM and then move to EMbedded C..
what do you say shiv..??:?:
shiv_emf said:I too agree with u
Do u see any difference between Embedded C and C ?
ASM is particularly used for specific requirement. To speed up booting time n stuff.. what do u say H_D_R? :?:
nandhu015 said:there is an another option
You can mix c and assembly....
Mixing c and asm correctly gives you speed and time...
(using asm in time critical loops and where c routines took large space)
Regards
Nandhu
nandhu015 said:Hai H_D_R
most of the compilers support inline asm.
for example keil
there is a document in keil help how to use inline asm.
Regards
Nandhu
H_D_R said:normal C compilers can generate only machine code after compilingnandhu015 said:Hai H_D_R
then what is the difference between Embedded C and normal C compiler..??
There is nothing called embedded C compilers, they are known as cross compilers. Cross compilers are used with C or cross assemblers are used with asm programs. Embedded C and cross compilers are used for embedded appilcation because cross compilers generate code for other platform ie hardware . That means that cross compilers can produce hex format after compilation which is understood by controllers this is not produced by compilers.
Added after 5 minutes:
nandhu015 said:Hai H_D_R
most of the compilers support inline asm.
for example keil
Regards
Nandhu
Hey nandu;
If yoou tell keil is a compiler then you dont know anything in 8051 or keil. update yourself with correct knowledge to answer to querries here. How you became a full member i really wonder.
But yes you can write both C and asm in 1 program only if you have a cross assembler and cross compiler integrated as in keil
ckshivaram said:Hey nandu;
If yoou tell keil is a compiler then you dont know anything in 8051 or keil. update yourself with correct knowledge to answer to querries here. How you became a full member i really wonder.
But yes you can write both C and asm in 1 program only if you have a cross assembler and cross compiler integrated as in keil