R
R
readrain2022-03-02 15:38:30
Microcontrollers
readrain, 2022-03-02 15:38:30

What languages ​​are used in microcontrollers?

I know about the existence of Arduino microcontrollers and they use C ++.
And there are microcontrollers that are programmed not in C ++ but, for example, in Java. I know about the existence of controllers in Python, but Python 3.0 is used there.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir Korotenko, 2022-03-02
@firedragon

a bunch of them net, java, python, js.
almost all did not take off. Microcontrollers are inherently small. And they need a lot.
That is, if the difference between 1 dollar and 30 is not too noticeable in a batch of 100 pieces, then releasing a batch of 10,000 you are already thinking.
Plus, what's the trick, microcontrollers are stupid. Why put this monster on 12 buttons and an indicator, where, by the way, runtime eats up to 90% of resources?

Z
Zolg, 2022-03-02
@Zolg

And there are Microcontrollers that are programmed not in C ++ but, for example, in Java.
There is. Very widely used in very narrow areas: for example, smart cards.

B
Borys Latysh, 2022-03-02
@nava2002

python, Java, С# .... languages ​​requiring an interpreter that has a significant size and even if it fits into the controller's memory, I would not seriously consider such a solution. These languages ​​work great in devices that have an operating system (for example, a smartphone).
The C, C++, Assembler languages ​​are available for 100% of controllers, they produce executable machine code at the output, which is actually written to the controller's memory.
If there is a strong desire to program controllers, then C ++ is the best choice. Moreover, all languages ​​are quite similar in syntax. Arduino is the perfect place to start. Since many narrow issues related to the "Iron" are solved out of the "box" and you can not fool around with the understanding of what works inside the controller.

V
Vladimir T, 2022-03-03
@32bit_me

There are no "python controllers". There are microcontrollers, there are languages ​​and their compilers / interpreters / bytecode execution machines.
In 90% of cases, pure C is used for programming m / c, the rest is C ++. Assembler is now rarely used. The use of interpreted languages ​​is difficult because resources are scarce, memory is scarce, and frequency is low.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question