Results 1 to 9 of 9

Thread: What language are emulators made of?

  1. #1
    Join Date
    Jun 2011
    Posts
    61
    Thanks
    10
    Thanked 0 Times in 0 Posts
    Blog Entries
    1

    Default What language are emulators made of?

    What language are emulators made of? Visual basic? CC? can anyone explain, im just curious?

  2. #2
    Join Date
    Sep 2008
    Location
    Astral Void
    Posts
    4,559
    Thanks
    38
    Thanked 279 Times in 109 Posts
    Blog Entries
    3
    EP Points
    125

    Default

    C++?
    C#?

    It's the preference of whoever is developing it.

    Getting around to it... | Available via Retroshare 16/7.

  3. #3
    Join Date
    Jul 2011
    Location
    P-town
    Posts
    425
    Thanks
    80
    Thanked 126 Times in 64 Posts
    EP Points
    25

    Default

    Well, according to their SourceForge.net profiles:

    VisualBoyAdvance is written in Assembly and C++
    ZSNES is written in Assembly and C
    ScummVM is written in C++
    AdvanceMAME is written in Assembly, C, and C++
    Nestopia is written in C++
    DOSBox is written in C and C++

    I don't think that C or C++ are better suited for emulators, it's just that C is usually credited with being the most well-known language in the world, and it would appear that many of the people graciously making us emulators follow one of the basic formulas: Write the base in C, then use another language to perform more complicated tasks and speed things up.

  4. The Following User Says Thank You to Alakazander For This Useful Post:


  5. #4
    Join Date
    Apr 2011
    Location
    Little village east of Nowhere
    Posts
    218
    Thanks
    19
    Thanked 23 Times in 22 Posts
    EP Points
    5

    Default

    Jpcsp is written in Java.

  6. #5
    Join Date
    Jun 2011
    Posts
    61
    Thanks
    10
    Thanked 0 Times in 0 Posts
    Blog Entries
    1

    Default

    wow Language C is mostly used.

  7. #6
    Pickles's Avatar
    Pickles is offline dagnabbit! These dad-gum kids and their new-fangled gizzy-moes!
    Join Date
    Dec 2008
    Location
    Ireland
    Posts
    2,239
    Thanks
    11
    Thanked 18 Times in 16 Posts

    Default

    FOr those emulators yes, but that doesn't mean every emulator for those consoles use those languages. Its really varied basically.

  8. #7
    Join Date
    Sep 2006
    Posts
    22,212
    Thanks
    172
    Thanked 385 Times in 241 Posts
    EP Points
    825

    Default

    the best langayge for emulators in my opinion is english

  9. The Following 4 Users Say Thank You to Inferno. For This Useful Post:


  10. #8
    Join Date
    Jan 2011
    Location
    Gallatin, TN
    Posts
    419
    Thanks
    27
    Thanked 319 Times in 48 Posts
    EP Points
    930

    Default

    I believe the majority of emulators are coded in C++ because it is easier to emulate hardware functions through it than through a higher logic language.
    The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

    - James Oliver Rigney Jr. aka Robert Jordan (God rest his Soul.) 10-17-1948 to 09-16-2007

  11. #9
    Join Date
    May 2008
    Posts
    360
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default

    Mostly C and C++ depending on the author. Mainly because the performance you get from the languages can be hard to beat by something that is interpreted. That's not to say that a language like Haskell, having the ability to be compiled or interpreted, would beat C or C++ performance wise. That just has to do more with C being essentially portable assembly and C++ inheriting some of that. The ones that utilize x86 assembly are somewhat shooting themselves in the foot a bit if they don't port the code to another language, but as things currently stand I think the situation requiring that outcome is a ways off. Unless of course Microsoft gets crazy and drops 32 bit support in Windows in one of the next releases, similar to when they dropped 16 bit support in the past. So then you'd have to kiss ZSNES goodbye and any other emulators that make use of that language until they got around to updating it. For ZSNES's situation though I doubt an update will be released even though they claim to be working on it.

    C++ is beginning to look more and more like C# though at least to me. So chances are someone may use C# at some point in the future for an emulator. Chances are it won't be for any system that demands anything extremely resource intensive to do accurately if an author goes that route. Byuu's example here of using some of the upcoming C++0x, I guess more appropriately named now as C++1x, can be looked at to form your own opinion but I digress on this point.

    http://board.byuu.org/viewtopic.php?f=10&t=1046

    Some are done in Java like the ones on the main website under the ROM sections if I recall correctly.

    There are also some written in Python and Javascript that I know of but those are just more or less tests so far.

    Like this Apple II emulator being in Python:

    https://github.com/jtauber/applepy

    And I do know that someone who goes by the moniker ggalitz is doing a GBC emulator in Javascript.

    I'd say as computers get faster and more efficient ways are found to utilize the resources we build them with, the language will matter less and less in the end as far as future written emulators are concerned though.
    Last edited by Zieg30CT; 14th-August-2011 at 20:51.

  12. The Following User Says Thank You to Zieg30CT For This Useful Post:


Similar Threads

  1. [TUTORIAL] How to run NDS games through BIOS mode on No$gba
    By meganova in forum Nintendo systems
    Replies: 3
    Last Post: 5th-May-2013, 10:55

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About Us

We are the oldest retro gaming forum on the internet. The goal of our community is the complete preservation of all retro video games. Started in 2001 as EmuParadise Forums, our community has grown over the past 18 years into one of the biggest gaming platforms on the internet.

Social