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

R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM
Re: Should I learn C or C++?
04/17/12 04:18 AM


> R. Belmont said :
> No. Demul and Makaron (and NullDC, and ElSemi's Model 2 emulator, and SuperModel) are
> written in C++. And you'd agree it hasn't hurt them, right?
>
> When those emulators/programs have been compiled from their source codes, the final
> result is actually machine code (assembler).

And that's equally true of MAME.

> Compiling from C++ You won't be able to get .exe, which will be well structured
> algorithm as if You programmed the whole thing in assem. from scratch.

What? Compiling from C++ produces an .exe file. mame.exe, demul.exe, supermodel.exe.

Here's the magic experiment I always tell people: load Demul and set it to use the interpreter CPU (MAME currently uses an interpreter for the SH-4). You will then get the same performance as MAME. Algorithms trump implementation details, every single time.







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 251 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