Re: Writing CPU Emulator in C++ language

Discussion in 'C++' started by Matthias Buelow, Jun 16, 2008.

  1. Immortal Nephi wrote:

    > The pointer to function table is the fastest performance, but switch table is
    > little slower.


    Source? I would think it's the other way round.
    Matthias Buelow, Jun 16, 2008
    #1
    1. Advertising

  2. Matthias Buelow

    James Kanze Guest

    On Jun 16, 2:32 pm, Matthias Buelow <> wrote:
    > Immortal Nephi wrote:
    > > The pointer to function table is the fastest performance,
    > > but switch table is little slower.


    > Source? I would think it's the other way round.


    I would think it would depend on the compiler, the degree of
    optimization requested, and the underlying architecture.

    --
    James Kanze (GABI Software) email:
    Conseils en informatique orientée objet/
    Beratung in objektorientierter Datenverarbeitung
    9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
    James Kanze, Jun 16, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mad Programmer

    Writing an ENIAC-emulator in Java

    Mad Programmer, Sep 13, 2005, in forum: Java
    Replies:
    2
    Views:
    2,028
    Dale King
    Sep 16, 2005
  2. Replies:
    1
    Views:
    894
    D Stanford
    Apr 26, 2006
  3. Replies:
    0
    Views:
    614
  4. Douglas Garstang

    Writing an Emulator

    Douglas Garstang, Nov 24, 2003, in forum: C Programming
    Replies:
    15
    Views:
    693
    Corey Murtagh
    Dec 10, 2003
  5. Santiago Romero
    Replies:
    15
    Views:
    2,282
Loading...

Share This Page