MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Anonymous
Unregistered
Re: Should I learn C or C++?
04/17/12 08:41 AM


> I think he's saying that hand-coded assembly is more efficient than that generated by
> a C++ compiler. Which was true, kind of, once upon a time.

It's still true. You could write a C++ program, compile it and find some optimisations that the compiler didn't.

The only downside is you'll spend a very long time searching for a very small performance gain. Time that could be better spent working on other ways of speeding it up.

With a C++ program of MAME's complexity you'll still be going when faster processors can run the C++ version fast enough.

There are very (very) rare circumstances when you have an algorithm that can't be improved, hardware that can't be upgraded and an absolute requirement for performance. In these circumstances it can be worth dropping to assembler. Anyone who thinks they've come across one of these circumstances before was probably wrong and there was a cheaper way.

Edited by smf (04/17/12 08:41 AM)







Entire thread
Subject Posted by Posted on
* Should I learn C or C++? mike20599 04/17/12 12:30 AM
. * Re: Should I learn C or C++? Bryan Ischo  04/17/12 01:37 AM
. * Re: Should I learn C or C++? CTOJAH  04/17/12 12:43 AM
. * Re: Should I learn C or C++? R. Belmont  04/17/12 02:31 AM
. * Re: Should I learn C or C++? CTOJAH  04/17/12 02:51 AM
. * Re: Should I learn C or C++? R. Belmont  04/17/12 04:18 AM
. * Re: Should I learn C or C++? DMala  04/17/12 04:58 AM
. * Re: Should I learn C or C++? Anonymous  04/17/12 08:41 AM
. * Re: Should I learn C or C++? mogli  04/17/12 05:29 AM
. * Re: Should I learn C or C++? Bryan Ischo  04/17/12 01:35 AM
. * Re: Should I learn C or C++? R. Belmont  04/17/12 02:33 AM
. * Re: Should I learn C or C++? Anonymous  04/17/12 08:54 AM
. * Re: Should I learn C or C++? R. Belmont  04/17/12 02:31 PM
. * Re: Should I learn C or C++? Anonymous  04/17/12 11:16 PM
. * Re: Should I learn C or C++? R. Belmont  04/18/12 03:27 PM
. * Re: Should I learn C or C++? Sune  04/17/12 01:34 AM
. * Re: Should I learn C or C++? Sune  04/17/12 12:40 AM
. * Re: Should I learn C or C++? Quantum Leaper  04/17/12 12:42 PM
. * Re: Should I learn C or C++? Anonymous  04/17/12 11:18 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 469 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1335