710 views|13 replies

152

Posts

0

Resources
The OP
 

What is the mainstream programming language for microcontrollers? [Copy link]

 

The mainstream programming languages for microcontrollers are assembly language and C language.

The C language of the microcontroller is a compiled programming language that combines the characteristics of multiple high-level languages and has the functions of assembly language.

C language has rich library functions, fast operation speed, high compilation efficiency, good portability, and can directly control system hardware. In addition, C language programs have a complete program module structure, which provides a strong guarantee for the use of modular programming methods in software development.

Assembly language is a symbolic language that uses text mnemonics to represent machine instructions. It is the language closest to machine code. Its main advantages are that it takes up less resources and has high program execution efficiency. Since one instruction corresponds to one machine code, the execution action of each step is very clear, and the program size and stack call status are easy to control, making debugging more convenient.

However, the assembly languages of different types of microcontrollers may be slightly different, so it is not easy to port because their instruction systems are different.

This post is from Talking

Latest reply

The main microcontrollers must be C, because C language is closest to the bottom layer   Details Published on 2024-9-13 08:52
 
 

1110

Posts

1

Resources
2
 

oh.................

Huaqing Yuanjian... Remember this

This post is from Talking
 
 
 

6027

Posts

6

Resources
3
 

Is assembly still the mainstream? Now it is basically C, and some still support Python

This post is from Talking
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 
 

2w

Posts

341

Resources
4
 

Assembly language is not mainstream now.

Less resource usage and high execution efficiency.
The biggest disadvantage is that the instruction sets of different MCUs are different, which makes it difficult to transplant.

This post is from Talking
 
 
 

1117

Posts

2

Resources
5
 

The MCU level is mainly C language. If it is ARM Linux level, C++ and shell will also be used.

This post is from Talking
 
 
 

6063

Posts

4

Resources
6
 

Embedded

It’s not possible to do assembly language now, but it was possible before the 2000s.

It doesn't work now.

Now there are many functional requirements and time is required quickly.

You can only use C or a more advanced language. C is a must.

This post is from Talking
 
 
 

410

Posts

0

Resources
7
 

Indeed, in the past, all microcontrollers, such as PIC, were assembled. I personally feel that after 2007, they gradually switched to C language. At that time, the company recruited several new graduate students, whose job was to replace all the company's previous assembly programs with C language.

This post is from Talking
 
 
 

4764

Posts

12

Resources
8
 
There are many C languages, but now many embedded systems use Python, which I think is very good.
This post is from Talking
 
 
 

6748

Posts

2

Resources
9
 

C. When I was learning Java, I seemed to have heard that Java also supports hardware.

This post is from Talking

Comments

Java requires higher hardware costs.  Details Published on 2024-8-27 12:55
 
 
 

6063

Posts

4

Resources
10
 
wangerxian posted on 2024-8-27 09:04 C. When I was learning Java, I seemed to have heard that Java also supports hardware.

Java requires higher hardware costs.

This post is from Talking
 
 
 

7422

Posts

2

Resources
11
 

What year is this ad from? It’s time to update it...

This post is from Talking
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

2

Posts

0

Resources
12
 

C language bar

This post is from Talking
 
 
 

3

Posts

0

Resources
13
 

The mainstream voice of single chip microcomputer is C

This post is from Talking
 
 
 

188

Posts

1

Resources
14
 

The main microcontrollers must be C, because C language is closest to the bottom layer

This post is from Talking
 
 
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list