We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I need to write a C++ program with the basic instructions to create classes and objetcs for the 8051. Has anyone written a C++ program and compiled it with Keil Microvision, it supports C++ instructions like class ?
Thanks in advance.
" ... Keil Microvision, it supports C++ instructions like class ?"
No, it does not.
Keil C51 is an ANSI C compiler - it is not a C++ compiler.
http://www.keil.com/c51/
"I need to write a C++ program with the basic instructions to create classes and objetcs"
Well, that's fair enough as an exercise in C++ programming
"for the 8051"
But why would you want to do a C++ programming exercise on an 8051?!
Why not just do it on a PC?!
I have looked at the Keil Realview C/C++ compiler for ARM and have thought that the C51 also belongs to Realview and could compile C++ codes.
"But why would you want to do a C++ programming exercise on an 8051?!
Why not just do it on a PC?!"
It's just an exercise of my course.
A few years back a company called CEIBO had a C++ front end for the 8051. It would interface to the older Keil C compiliers. Don't know the present status but at the time you could download a limited eval from CEIBO. Bradford
"thought that the C51 also belongs to Realview..."
No, it doesn't, I'm afraid.
"...and could compile C++ codes"
hence it can't.
"It's just an exercise of my course."
Then there is no point in worrying about the 8051!
Just use a native PC C++ compiler - there are several free ones available (including from Borland and Microsoft).