[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emulator, Inc



>>>>> "BP" == Bryan Parkoff <nospam@nospam.com> writes:

BP> I have read Darek's website at http://www.emulators.com/. Darek is
BP> an emulated programmer and he told me that he claims that C/C++
BP> language is the WRONG languge for Emulator Project. He says that
BP> he focuses at assembly language for best optimization and
BP> performance. It is almost impossible for me to tell since he has
BP> been programming for over 17 years. He always disagrees with many
BP> programmers for general Emulation.

The speed difference between assembly code and C/C++ depends on the
cpu architecture, the compiler, and the problem. There's no given
answer. Unless the compiler and/or the cpu architecture is braindead,
the gains from rewriting a routine in assembler is tends to be some-
where betweem 10% and 200%, depending on what you're trying to imple-
ment. The drawback is of course that writing it in assembler is, in
general, slower and more bug prone than writing it in a high level
language. So what you do is you write the application in C/C++,
analyze the code, and the rewrite the routines that would benefit the
most from it in assembler. In an emulator, this is typically the video
code and the CPU emulation. Writing the rest of the application, like
the user interface, in assembler is usually just a waste of develop-
ment time.

-- 
                       Wildstar delenda est
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp@cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/