Programming language directly with hardware [closed]

0

I will make applications that require a direct connection with the hardware, for example, a programmable mini-robot that receives information from one sensor and sends it to the programming to treat and return the correct action to another card or circuit and so on. according to each information received. What would be the ideal language? C?     

asked by anonymous 03.08.2015 / 19:46

2 answers

6

There is no more appropriate language, at least not with this description.

There is one that solves the problem. If the hardware used does not accept codes written in C, it is not suitable. The same goes for C ++. In some rare cases it may be that you can only make your application, or part of it, in Assembly of that hardware. It may be that the ideal or even unique language for this hardware is one that the manufacturer has invented. It can be Java or C #, or maybe Moon. It also depends on the application. And it depends even more on which you know and dominate.

It's no wonder Lego Mindstorms NXT allows several languages. It has even dialects. I imagine there must be very good libraries to access the hardware through most or all of them. But this is just an example.

Without knowing all this I pointed out and maybe some more things it is difficult to say which is more appropriate. And one of these things only you can answer. Which one do you know well and will you be happy to use? Are there political factors involved?

Anyone who says what language you should use will be biased.

    
03.08.2015 / 19:56
1

The bigown is right, but as you said "applications that require a direct connection to hardware" of course I would indicate low-level languages, as this is a characteristic of them. This will depend on the system you are going to use. For example: if you are going to use a PIC microcontroller where resources are scarce, Assembly or C are the options. But if you use a more robust, microprocessor-based system with more features, it becomes interesting to use high-level languages.

    
03.08.2015 / 20:59