8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
mic_k86
Wed Jul 02 2008, 11:48PM
 User Offline
Registered Member #8221
Joined: Mon Jun 02 2008, 11:53PM

Posts: 29
Thanked 0 times in 0 posts
which of the coding better? on what condition need to use which coding?

Back to top


sashijoseph
Thu Jul 03 2008, 12:08AM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 471
Thanked 106 times in 101 posts
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.

Let there be music........
Back to top



This post has been thanked 1 time
 mic_k86 
Ajay
Thu Jul 03 2008, 10:15PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3370
Thanked 615 times in 582 posts
I prefer C over assembly, but i never say "leave ASM".

best combination is C+ASM >> more flexibility. more optimization, faster and efficient code

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


mic_k86
Fri Jul 04 2008, 12:06AM
 User Offline
Registered Member #8221
Joined: Mon Jun 02 2008, 11:53PM

Posts: 29
Thanked 0 times in 0 posts
in a microcontroller can combine on C and ASM? the coding will not coflict with each other?
Back to top


Ajay
Fri Jul 04 2008, 12:17AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3370
Thanked 615 times in 582 posts
yes you can combine easily..

use the C preprocessor #pragma
e.g.

CODE:
#pragma asm
mov a,@r0
#pragma endasm
 


www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


mohamed gaber
Fri Jul 04 2008, 05:41AM

 User Offline
Registered Member #7060
Joined: Sat Apr 05 2008, 01:01PM

Posts: 2
Thanked 0 times in 0 posts
how can i write asm in the c code in kiel compiler

OOOOOH , I'm forget I love asm over C

visit me at :
http:// migaber.free-site-host.com

my blog :
http://migaber.blogspot.com
Back to top


 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems