Quote:
> Hi,
> Just wanted to know as to how much the simulation run-times suffer
> if OO mechanisms are implemented in VHDL. I know that C++ code is roughly
> 10 times slower than C code.
10 times slower, Java isn't even 10x slower these days.
C++ compilers can do one of the following:
.1) Translate C++ in C and compile the C.
.2) Translate C++ in native code and assemble it.
Either way, the runtime performance of the compiled application depends
upon the quality of the compiler.
Now ... it can take longer to compile a C++ application - its a more
complicated task. That has nothing to due with application performance though.
The performance will also degrade if use is made of RTTI or virual
functions, and careless inheritance and this, that, and the other.
However well designed C++ code shouldn't be any slower than equivalent C.
-Frazer
Quote:
> | Deepu Talla | If it is not necessary to change |
> | | it is necessary not to change ... |
> | Phone: (610)225-0243 (R) | |
> | (610)519-7371 (O) | whatever, whoever, wherever, whenever|
> ~~~~~~~~~~~~~~~~ http://www.ece.vill.edu/~deepu ~~~~~~~~~~~~~~~~~~~
--