Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/30/02 07:30
Read: times


 
#35215 - RE: C++ and 8051
Hi,

I'm not sure what you mean but here it goes.

First of all using C++ for a microcontroller wouldn't make sense as C++ would cause too much overhead of loading and unloading objects into memmory. C will do just fine.

Yes you can use Assembly language in C with the _asm tag, the compiler will copy and translate the ASM into whatever format you specify. If you have knowledge of ASM, why us C/C++?

There are 2 ways to load a compiles program onto your board.

1. Burn it onto a EPROM
2. Load it into memory via a serial cable.

The firs option is rather time consuming (burning/erasing) so it's better to load a program into memory via serial link.

To be able to load a program into memory your board still needs a so called "monitor program" burnt onto a EPROM.

Look at the Links, Tutorials and FAQ section of this site for more information. There are links to known C compilers and a few helpfull hints there.

If you can't figure out howto load a program into memory then I'd suggest giving up and finding a new hobby. :)

List of 9 messages in thread
TopicAuthorDate
C++ and 8051            01/01/70 00:00      
RE: C++ and 8051            01/01/70 00:00      
RE: C++ and 8051            01/01/70 00:00      
RE: C++ and 8051            01/01/70 00:00      
RE: C++ and 8051            01/01/70 00:00      
RE: C++ and 8051            01/01/70 00:00      
RE: C++ and 8051            01/01/70 00:00      
   Serial communication with C++ and 80C32            01/01/70 00:00      
RE: C++ and 8051            01/01/70 00:00      

Back to Subject List