Welcome, Guest. Please login or register.

Author Topic: C++ on Amiga  (Read 14927 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Caius

  • Sr. Member
  • ****
  • Join Date: Nov 2007
  • Posts: 294
    • Show all replies
Re: C++ on Amiga
« on: August 30, 2009, 06:34:37 PM »
Quote from: matthey;521499
C++ is rarely used on the Amiga and it's slower.


That's highly debatable. If you simply compile C sources with a C++ compiler there's no difference unless you're using a retarded compiler. C++ function objects can be inlined, while function pointers in C can not. Some sorting algorithms have proven to be many times faster on C++ due to this.

It is true that certain parts of the C++ language are slow, like using virtual functions in a tight loop. It's really a matter of knowing your language, knowing the little 'gotchas'.

In my experience, the main disadvantage with C++ is slower compiling, especially when using templates. But I'm a little tired of reading "use C instead" every time someone mentions C++ on the Amiga.
Theology is just a debate over who to frame for creating reality.