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,ve installed the Compiler and I can,t get even the simplest code to compile properely.
Anyone know where the fix for this bug is?
Or is it a limit of the demonstration version?
void main(void) { cout << "Hello world!"; }
At this point I can contribute some real-life experience.
I have developed a couple of applications using Java on the Dallas 80C400 - Their name for the technology is TINI.
I had previously done a lot of work (more than 15 years worth) primarily in assembler and C on 8051 and V55 cores.
TINI was my first attempt of using such a high level language on the 8051 derivative (albeit a vastly souped-up one).
The result - The projects were written in time, to cost and within the constraints laid down by the hardware.
Fortunately, they were not time critical applications and they performed their function adequately and (most importantly) within specification requirements.
Then came another project.
The management wanted me to use the same basic platform; i.e., the 80C400 with TINI. Knowing what the project entailed, I was reluctant to us TINI on this project but I had my orders and decided to go along with the decision.
It very quickly became apparent that the setup just was not man enough for the job. I decided (unknown to the management at that time) to rewrite the application in C.
The result was that the application ran some 400 time faster in various critical sections than the equivalent TINI code. Yes, I do actually mean 400 times faster!
Fortunately (for me), the management agreed that I had made the right decision.
So ... my advice is this:
Yes you CAN consider and use C, C++, JAVA or any other high level language, but please also consider whether the resultant application is going to work in a satisfactory and acceptable manner for the customer.
Ok,
It's becoming clear that I can write on the 8051 in C++.
It may be inefficient code and need more resources than code which others write. But if I can write an application quickly with the confidence brought about by using tools I know then it should be worth the wrath of some forum members.
I don't understand why there are some guys that are so negative about certain suggestions.
"I don't understand why there are some guys that are so negative about certain suggestions."
Trying to compile C++ with a C compiler:
I,ve installed the Compiler and I can,t get even the simplest code to compile properely. Anyone know where the fix for this bug is?
On receiving an answer that it is a C compiler:
Can someone answer my question in English please!
On experience with embedded compilers:
Why is the demonstration version so limited? It looks very weak! Microsofts free compiler can do so much more!
On receiving a good description of the problem, a note that the M$ compiler can't build for the '51 target, and that the C51 can't build C++ and that a trivial change to the code (to make it C code) would make the example buildable:
Someone give a more positive (and helpful) response please!
After having received a number of descriptions that C and C++ are different languages:
Why have a demo version that won,t compile my simple program?
After receiving a further note that C and C++ are different languages, and that a C compiler just can't compile C++:
Anyway, I need to know of alternatives and not just get you can,t do it style comments.
On the question: Can't you switch to C? Do you really need C++?
You make these comments without knowledge or appreciation of the requirement. My contract requires me to produce code for an 8052 controller board that has a keypad and a display. I need serious options please.
This implies that the chip 8052, or the keypad or the display is a direct implication why C++ is a requirement and not an option. It also implies that the answers you have received are not serious.
After receiving a number of notes that C++ are not the best of languages for the lowest end of microcontrollers, you translate unsuitable into impossible:
The general view from this forum is that C++ an the 8052 don't mix.
From then on, it's not meaningful to follow the thread anymore.
As you can (probably not) see, you entered this thread in a very narrow-minded way. The perfect way of entering a forum and ask questions...
It's becoming clear that I can write on the 8051 in C++
It's becoming clear now ? I mentioned that there are C++ compilers (not free, neither beer nor speech) in my posting yesterday. Along with the fact that Keil C51 is not a C++ compiler, and that what you considered a "bug" was actually a lack of reading and understanding the documentation.
It took a while to get through ?
No. It's become overabundantly clear that you believe you can use C++ on an 8051. Now that was pretty evident from the beginning, but that didn't keep you from stressing this point at every opportunity.
But if I can write an application quickly
If you can do it. But there has been negligible evidence that you really understand the task you're so convinced you're capable of completing. Instead you blame every failure of your attempts at implementing your ideas on others --- the tools, their makers, the people in this forum. Something and somebody must obviously be faulty, incompetent and/or "academic", as long as you can deny it might be your fault. In my country this attitude is usually summarized by an old adage: If the farmer can't swim, his swim trunks are at fault.
with the confidence brought about by using tools I know
... except that you rather evidently don't know the tools relevant to the job at hand.
then it should be worth the wrath of some forum members.
You're mistaken if you think what's being directed at you qualifies as wrath. It's more like commiseration, for now.
Indeed, you don't understand. But you're wrong about what it is you don't understand. You utterly fail to grasp the idea that people telling you that your suggestions are bad might be doing so not because they're "negative", but because their experience taught them.
While pretending to ask a question, you really came here with a prejudice expecting people to provide arguments supporting it. But then something happened that you hadn't contemplated before: people gave you answers that disagreed with your pre-set opinion. Well, guess what, that's one of the consequences of asking a question: you lose the right not to have to listen to answers you don't like.
Wisdom comes not from asking questions, but from actually listening to answers.