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 11:16 PM


> Right. My point was that assembler would hurt simply because it's an order of
> magnitude more time-intensive to write and debug.

It will certainly make it harder to write, but it would be wrong to suggest that language choice has some magic ability to make an emulator more accurate.

> That's less likely now than it was when we started MAME (only nutters like myself
> commonly run machines over 4 GHz) but we're slowly learning to take advantage of
> multicore.

It will be interesting to see what comes in another ten years, but currently there doesn't look like they'll be the same jump in performance that we have had since the 486 days.

> The real issue is these modern CPUs are so smart about reworking your code
> "live" for optimization that hand-tuning is mostly irrelevant.

They've hit the same problem, it's now hard to just ramp the clock speed so they are having to find better algorithms to make code run faster. As there is a lot of C++ code out there then I'd expect to see improvements in compilers and the processors ability to run the generated code faster. Which of course you also don't get the benefit if you write in assembler.







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 223 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1337