mic_k86
Jul 2 2008, 11:48 PM
which of the coding better? on what condition need to use which coding?
sashijoseph
Jul 3 2008, 12:08 AM
ASM is always better....gives you the most efficient code size,exposes all the dirty details of the hardware you're programming,which in turn makes your concepts of the underlying architecture strong.
But if you've used high level languages before and want to start off in hurry then C is the best.Complex projects can be managed easily and the lowest learning curve is involved especially with a number of libraries provided by the compiler maker.
But if you've used high level languages before and want to start off in hurry then C is the best.Complex projects can be managed easily and the lowest learning curve is involved especially with a number of libraries provided by the compiler maker.
Ajay
Jul 3 2008, 10:15 PM
I prefer C over assembly, but i never say "leave ASM".
best combination is C+ASM >> more flexibility. more optimization, faster and efficient code
best combination is C+ASM >> more flexibility. more optimization, faster and efficient code
mic_k86
Jul 4 2008, 12:06 AM
in a microcontroller can combine on C and ASM? the coding will not coflict with each other?
Ajay
Jul 4 2008, 12:17 AM
yes you can combine easily..
use the C preprocessor #pragma
e.g.
use the C preprocessor #pragma
e.g.
CODE:
#pragma asm
mov a,@r0
#pragma endasm
mov a,@r0
#pragma endasm
mohamed gaber
Jul 4 2008, 5:41 AM
how can i write asm in the c code in kiel compiler
OOOOOH , I'm forget I love asm over C
OOOOOH , I'm forget I love asm over C