- Joined Aug 21, 2022
how can i program microcontroller which can run c++ application on it when user want
Welcome to AAC!how can i program microcontroller which can run c++ application on it when user want
I suppose you could start with a loader that could read a C++ executable for a given processor e.g. ".axf" ARM Executable Format, and implement an emulator for that particular ARM processor, and that would fit my definition of a "wee bit 'o work". I say GO FOR IT -- WOOT! WOOT!Are you saying the microcontroller should be able to read a C++ source program and execute it? That would require a wee bit of work.
I'm with you on that, but I think we may have lost the TS. This apparently happens with considerable regularity especially from first time posters.I was thinking of a complier / loader hosted on the micro.
Don't laugh, I have done it. Though it is a simple compiler to virtual machine and a very simplified language. A far cry from C++, though it does have classes.
Edited to add: I think some of the larger STM32 or ARM based microcontrollers could support a C++ compiler.
One may approach the project in much the same way as uPython:how can i program microcontroller which can run c++ application on it when user want
There are other approaches but most would follow similar thinking with some exceptions.The compilation process in MicroPython involves the following steps:
- The lexer converts the stream of text that makes up a MicroPython program into tokens.
- The parser then converts the tokens into an abstract syntax (parse tree).
- Then bytecode or native code is emitted based on the parse tree.
|Thread starter||Similar threads||Forum||Replies||Date|
|Help to program ic "actel1020"||FPGAs (Field Programmable Gate Array)||1|
|Can someone help me with this program||Microcontrollers||5|
|S||Assembly Language Program||Homework Help||15|
|Z||Help with C+ program to drive Bipolar Stepper motor using PIC18F1320 Microcontroller||Microcontrollers||2|
|help : write a microcontroller program from matlab||Microcontrollers||15|