Question About Programming Languages

General discussion on mikroElektronika website & forums.
Post Reply
Author
Message
alvaroevc5
Posts: 69
Joined: 23 Apr 2014 07:32

Question About Programming Languages

#1 Post by alvaroevc5 » 23 Apr 2014 07:57

Lately, I've been trying to get the most out of my 16F887 PIC, but some people tell me that if I want to make any significant progress, then I should learn how to "control" the microcontroller using assembly language, because that way "I could go deeper" into what it really is and what it can actually do.

So, could anyone please tell me a good list of pros and cons about only using C language and only using assembly language when it comes to really understand and exploit the different functionalities of the microcontroller?

bpislife
Posts: 539
Joined: 11 Jun 2006 21:16
Location: Cumberland, RI

Re: Question About Programming Languages

#2 Post by bpislife » 24 Apr 2014 02:53

Short and quick:

Assembly - provides the most control of the hardware as the code is the lowest level short of writing raw machine code. With assembly you can optimize the use of the MCU more than any other method

C - while it doesn't offer the highest of optimization as assembly itself, it generally allows you to optimize most programs enough (unless precise timing is needed). C is easier to read and understand by others. It also has a larger code base as most c code can move from one MCU to another.

Post Reply

Return to “Website & Forums General Discussion”