Slashdot Mirror


Bochs x86 IA-32 Emulator 2.1 Released

Asmodeus writes "Just noticed that the 2.1 release of the Bochs IA-32 emulator is out at the Bochs home page For those not in the know, Bochs is an open source implementation of the x86 instruction set(s) and a virtual PC (al la VMWare) which is capable of booting FreeDOS and Linux under the host control of another OS."

216 comments

  1. Re:Behind the times by Anonymous Coward · · Score: 0

    that would imply that they actually *READ* the articles before they post them... which we all kow is not the case ;)

  2. Re:WINE for OS X by Thargok · · Score: 1, Informative

    It would be, if darWINE actually used Bochs...

  3. Bochs is not like VMWare by enosys · · Score: 5, Informative
    Bochs is not like VMWare.

    Bochs emulates the IA-32 instruction set and enables you to run IA-32 software on any sort of hardware that you can compile Bochs on. (eg. I once ran it on a MicroVAX at an incredibly slow speed)

    VMWare requires IA-32 hardware. Most of the instructions are executed natively and only some of the priviledged operations are emulated so that whatever is run under VMWare can work as if it has full control over the CPU while in fact being an un-priviledged task.

    1. Re:Bochs is not like VMWare by Anonymous Coward · · Score: 0

      aw hell. give 'em credit. mentioned a release, and attemted to at least give you SOME idea of what it was, in case you didn't already know. when was the last time you saw that here?

    2. Re:Bochs is not like VMWare by AJWM · · Score: 1

      (eg. I once ran it on a MicroVAX at an incredibly slow speed)

      Heck, native code on a MicroVAX runs at an incredibly slow speed. An IA32 emulation must be positively glacial.

      --
      -- Alastair
    3. Re:Bochs is not like VMWare by Endive4Ever · · Score: 1

      Now look what you've done. You've inspired me to reinstall NetBSD on my Mac SE/30 (16 MHz 68030 machine) just to run this Bochs on it.

      --
      ---
    4. Re:Bochs is not like VMWare by Anonymous Coward · · Score: 0

      today

    5. Re:Bochs is not like VMWare by Paul+Jakma · · Score: 4, Insightful

      it does give you the capabilities of VMWare, at a significant performance cost anyways.

      You completely missed the point of the post you replied to, didnt you?

      While Bochs might provide the capabilities of VMWare at a performance cost, VMWare does not provide any of the capabilities of Bochs. One is a complete and portable implementation in software of an entire architecture, the other merely virtualises an architecture.

      --
      I use Friend/Foe + mod-point modifiers as a karma/reputation system.
    6. Re:Bochs is not like VMWare by ari_j · · Score: 2, Insightful
      Actually, read the posting again.

      Bochs is an open source implementation of the x86 instruction set(s) and a virtual PC (al la VMWare) which is capable of booting FreeDOS and Linux under the host control of another OS.

      You're just placing the parentheses wrong. Grammatically, this says that Bochs is two things:
      • open source implementation of the x86 instruction set(s)
      • virtual PC (al [sic] la VMWare)
      This is quite true.
    7. Re:Bochs is not like VMWare by Anonymous Coward · · Score: 1, Informative

      Bochs emulates the IA-32 instruction set..

      It can emulate X86-64, too. Useful for debugging all those X86-64 operating system ports..

  4. Yay. by xenostar · · Score: 1

    Nice! I haven't checked tried it out yet, but if its speed is comparable to VMWare, then it's yet another step towards Windipendence. I use Linux 80% of the time, but I find myself returning to Windows for two things. 3dsMAX and Adobe stuff. The latest versions of either of which don't run in WINE, unfortunately enough. I think I'll give Bochs a try.

    1. Re:Yay. by antoinjapan · · Score: 2, Informative

      unfortunately having tried both bochs and vmware recently I can tell you its orders of magnitude slower than vmware due to it emulating everything whereas vmware uses the actual processor in the machine.

    2. Re:Yay. by bodgit · · Score: 1

      I'm guessing if you can afford licenses for these two suites of applications, you can afford a VMWare license.

    3. Re:Yay. by Unoti · · Score: 1

      Can you download VMWare on Kazaa like you can 3DS and Adobe? I'm not advocating piracy, but I would like to point out that a wad of cash isn't always involved when someone's running expensive software. And some software is more easily pirated than others.

  5. capable of running serious OSes as well by Anonymous Coward · · Score: 5, Informative

    Bochs isn't just capable of running DOS clones:

    Operating Systems inside the emulation including Linux, Windows(R) 95, DOS, and Windows(R) NT 4

    It can also run Windows 2000 - and probably XP as well if product activation works.

    1. Re:capable of running serious OSes as well by acidrain69 · · Score: 5, Interesting

      And it runs on more than just IA-32. I have it running on my dual Alpha 533. Runs win98.

      --
      -- Having a Creationist Museum is like having an Atheist place of worship
    2. Re:capable of running serious OSes as well by cujo_1111 · · Score: 5, Funny

      Isn't that the ultimate disgrace for an Alpha system? Maybe Win95 would be worse, but not by much.

      --
      If I point out that you are incorrect, making me a foe does not make you any more correct.
    3. Re:capable of running serious OSes as well by Anonymous Coward · · Score: 0

      Have you tried FX32? AFAIK it would be vastly superior to Bochs, in that it does dynamic binary translation and should reach a good fraction of native speed. Or has FX32 been discontinued along with the transfer of Digital assets to Compaq/HP?

    4. Re:capable of running serious OSes as well by mwilliamson · · Score: 1

      I wonder if it is possible to run iTunes on a Linux host O/S, XP guest O/S. I'd suspect it could, but has anyone tried?

    5. Re:capable of running serious OSes as well by Ed+Avis · · Score: 1

      ISTR that Digital had some kind of dynamic recompilation 386 emulator for the Alpha, and it was good enough that a 500MHz Alpha performed faster than a 500MHz PC for running PC software. Whatever happened to that?

      --
      -- Ed Avis ed@membled.com
    6. Re:capable of running serious OSes as well by mikefoley · · Score: 2, Informative

      It was NT-only. It was called FX!32. Google that and you'll find out more info than can be explained here.

      --
      What's my Karma Mr. Burns? "Excellent"
    7. Re:capable of running serious OSes as well by drinkypoo · · Score: 1
      "Windows ME"

      'Nuff said.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    8. Re:capable of running serious OSes as well by RLiegh · · Score: 1

      It only "works" if by "works" you don't count the fact it takes a week to boot any given 32-bit operating system, a month to start up a GUI (probably would take a year to load something like XP or Mozilla) and that NetBSD and OpenBSD both panic on it.

      Usabilitywise, It's no kind of replacement for VMWare, not until they get the speed issue resolved.

    9. Re:capable of running serious OSes as well by Jahf · · Score: 1

      It only performed better in some circumstances, the compiler wasn't able to handle everything people wanted it to compile (though it did get most things without tweaking) and the x86 chips were starting to skyrocket in speed about that time (P3 was coming out and within a year or two was well past 1GHz along with known plans for the P4 to hit 2+ GHz) while Alpha was having a hard time keeping up on clock speeds.

      And yeah, I know clock speeds aren't everything, but I'm not the market in general and you did ask whatever happened to it :)

      --
      It is more productive to voice thoughtful opinions (reply) than to judge (moderate) others.
    10. Re:capable of running serious OSes as well by DickBreath · · Score: 2, Interesting

      It can also run ..... probably XP as well if product activation works.

      Let me think about this. Supposedly product activation does not reveal any personally identifiable information. Anyone could do an activation.

      I suppose that Bochs emulates a given set of hardware. So it always looks like you have one motherboard. The emulated MAC address could be hardcoded, as long as Bochs also were to emulate a separate "masquerade" to the outside. When Bochs initializes a hard drive, it would assign a fixed serial number.

      Where I'm going is that some evil thief could activate XP on a Bochs. Then that activation might work for any other thief who needs to run XP on Bochs.

      --

      I'll see your senator, and I'll raise you two judges.
    11. Re:capable of running serious OSes as well by Foolhardy · · Score: 1

      This is a good idea.
      However, making copies of it in that fasion is a violation of the licence agreement, and if you are going to ignore that, you might as well pirate the volume licenced version that has no activation. Not to mention how slow it will be under Bochs.

    12. Re:capable of running serious OSes as well by Anonymous Coward · · Score: 0

      Do you have a 6THz P8 that would let you run XP under Bochs at a reasonable speed?

      Most of the benches I've seen show terribly taxing tasks like "installing Win98" taking forever on dual G5 machines.

    13. Re:capable of running serious OSes as well by acidrain69 · · Score: 1

      As has been noted, it is NT-only, and the technology was never released such that it could be ported/incorporated into linux.

      Besides, I think my alpha will only run up to winNT4, no win2k and definately not XP.

      The FX32 software is available, but probably not on any official digital pages anymore.

      There is also em86 for linux, which does something similar for running x86 linux binaries on alpha. I have it but haven't tried it.

      As geeky as it is, I'm thinking of retiring it. I have a dual P2 that will run more software and use less power. And it will be quieter.

      --
      -- Having a Creationist Museum is like having an Atheist place of worship
    14. Re:capable of running serious OSes as well by acidrain69 · · Score: 1

      The plan was to run an OS that didn't require much power, and use it to run winMX or some other windows only software on Alpha, which won't run wine.

      The mouse code sucks in Bochs though. If I ever get back to programming, I was going to change the bochs mouse layer to more of a "touch screen" style. Currently, you move the mouse and you see the mouse pointer CRAWL across the bochs virtual screen. Change a few key functions, and it would only detect where you click, move the mouse pointer in the bochs VM, issue a click to the guest OS, and leave the pointer there till the next click.

      You lose the ability to see mouseovers, but for what I wanted to do with it, it wouldn't matter. And click-n-drag probably wouldn't work either, but still, this is unimportant for my needs.

      --
      -- Having a Creationist Museum is like having an Atheist place of worship
    15. Re:capable of running serious OSes as well by Anonymous Coward · · Score: 0

      Here is an interesting USENIX paper on FX!32.

      Notable quote:
      "After translation, x86 applications run as fast under DIGITAL FX!32 on a 500Mz Alpha system as on a 200Mz Pentium-Pro."

      And that's after you've run the program a few times. The first time you run FX!32 is incredibly slow. Binary translation isn't easy stuff; there is essentially 0 chance that a 500Mhz alpha could match a 500Mhz PIII running any real x86 code, much less beat it.

  6. Bochs needs to be re-boxed. by 0x1337 · · Score: 5, Interesting

    Wow.... ummmm.... slashdot?

    Could we not post "news" about things that came out an eon ago? Seriously... ROFL,,,,

    ----->

    Bochs is kind-of OK. I use it regularly when I work on my exokernel project and it really IS A GREAT developing/debugging tool (especially if compiled with the GDB stubs ;-)).

    However, however, however... I wouldn't consider Bochs useful for anything other than hacking around with kernel/os stuff. Bochs needs a re-write from scratch and emulate a real standard PC motherboard - not an 80386 with i486, pentium, athlon, mmx, PCI, USB, ATA etc... hacks around it. PCI support is non-existent. Video is flakey - well you can get VESA-compliant > 800x600 if you physically change the source (easy). All emulated devices are ISA "bus"-based. Over the years stuff just kind-of gotten piled on, and on and on - with no sensible strucure. I am not talking out of my ass either - at some point in my life I felt that Bochs would be a great project to hack.

    1. Re:Bochs needs to be re-boxed. by afidel · · Score: 1

      Sounds almost perfect for running old early 90's era games assuming that it has SB16 support =) And for once the slowness of emulation isn't a problem since a major difficulty in running old games is often that their internal delay loops aren't large enough to run at human speed on modern hardware.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    2. Re:Bochs needs to be re-boxed. by gl4ss · · Score: 5, Interesting

      for early 90's era games dosbox does excellent job most of the time. http://dosbox.sourceforge.net/

      --
      world was created 5 seconds before this post as it is.
    3. Re:Bochs needs to be re-boxed. by timeOday · · Score: 1

      We're not talking "turbo button" slowdown here. Try dividing your MHz by 100. Okay, maybe VERY early 90's era performance.

    4. Re:Bochs needs to be re-boxed. by 0x1337 · · Score: 2, Interesting

      Yes, there is SB16 support. However, I am currently having issues running games like Civilization I under Bochs. :-(

    5. Re:Bochs needs to be re-boxed. by Anonymous Coward · · Score: 0

      Video is flakey - well you can get VESA-compliant > 800x600 if you physically change the source

      Bochs 2.1 added support for 15, 16 and 32bit Vesa modes, so no need to hack the source anymore. It is still glacial though. I wouldn't recomend it..

    6. Re:Bochs needs to be re-boxed. by networkz · · Score: 1

      true, but Boch's strengths are that it can platform independantly, not on existing x86 hardware.

      but i'm not denying dosbox is still very cool

    7. Re:Bochs needs to be re-boxed. by McDutchie · · Score: 2, Informative

      I'm runnig dosbox just fine on my iBook, so evidently it's platform-independent.

    8. Re:Bochs needs to be re-boxed. by gl4ss · · Score: 1

      dosbox is a full emu in the bochs way and not virtualisation software.. the developing is just more practically geared to play (old)games than what bochs is.

      --
      world was created 5 seconds before this post as it is.
    9. Re:Bochs needs to be re-boxed. by MiniChaz · · Score: 2, Funny

      But the x86 hardware we know and love (hate?) is just "80386 with i486, pentium, athlon, mmx, PCI, USB, ATA etc... hacks around it". :o)

    10. Re:Bochs needs to be re-boxed. by buddha42 · · Score: 1
      an 80386 with i486, pentium, athlon, mmx, PCI, USB, ATA etc... hacks around it... Over the years stuff just kind-of gotten piled on, and on and on - with no sensible strucure.

      Sounds like they're trying to emulate the spirit of x86 as well as the letter.

    11. Re:Bochs needs to be re-boxed. by afidel · · Score: 1

      1.2GHz/100=120MHz or about 5 times faster just based on MHz than my 486SX-25 not to mention super pipelining and an FPU! Btw that PC was the fourth fastest available in 1993 only beaten by the DX-33, SX-33 and DX-25.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
    12. Re:Bochs needs to be re-boxed. by Moofie · · Score: 1

      I'm pretty sure that my buddy bought his Packard Bell DX2-50 in '93.

      God help him.

      Me, I wanted the DX-50 (not the clock-doubled DX2-50). that thing was a smokin' machine.

      What I got instead was a DX2-66 on my Apple DOS Compatibility Card for my PowerMac 6100. Of course, that wasn't until '94, but it was still a cool rig.

      --
      Why yes, I AM a rocket scientist!
    13. Re:Bochs needs to be re-boxed. by brion · · Score: 1
      1.2GHz / 100 isn't 120 MHz, it's 12.

      Admittedly, a 12 MHz PC was pretty good in 1988...

      --

      Chu vi parolas Vikipedion?

  7. Re:WINE for OS X by rolocroz · · Score: 1

    Did you even read the blurb? It said right there that it'd use Bochs.

    --

    I meta-mod all positive moderation Unfair, because it's abuse of the system.

  8. Bochs is not your answer by gotr00t · · Score: 5, Insightful
    Bochs is actually an emulator for an IA32 system, and though it has support for some Windows operating systems, don't expect to be able to do much with it, because its intent was not really to run windows programs on Linux and other OSes.

    Many others have already posted this, but VMware != Bochs, because VMware uses virtulization to run a guest OS with minor overhead on a host system. Bochs, on the other hand, emulates everything, even if the host system is IA32, causing massive performance degredation. I see that your applications are rather large scale(3DSMAX and Adobe applications) - and probably would rely heavily on graphics adaptor and memory. Bochs is definately not your answer, as if you could even get it to work, it would be so incredibly slow that you'll forget why you were doing it in the first place before the program even loads (trust me, it has happened before).

    Look to VMware to do things like this - it may have a fee attached, but its fast and capable, but not open source.

    1. Re:Bochs is not your answer by Bob.Smart · · Score: 5, Interesting

      qemu seems to do emulation right. It would be nice if the emulation community would get behind it.

    2. Re:Bochs is not your answer by Daengbo · · Score: 1

      So, what ever happened to Plex86, the possible replacement to VMWare? Last I heard, it was DOA.

    3. Re:Bochs is not your answer by nutznboltz · · Score: 1

      Does qemu have emulated networking support? That's one of bochs' coolest features since you can run a real multi-tasking OS with networking installed and telnet or ssh into the emulator. It also helps with moving files in and out of the emulator too via FTP or ssh.

  9. Re:Behind the times by RalphBNumbers · · Score: 4, Funny

    Perhaps the person who submitted the article did so from inside Bochs.

    Gotta love that blazing static instruction translation speed! Only a month or so to fire up a web browser and post a /. article.

    --
    "The worst tyrannies were the ones where a governance required its own logic on every embedded node." - Vernor Vinge
  10. Re:WINE for OS X by Anonymous Coward · · Score: 1, Informative

    Darwine is going to use QEMU

  11. Bochs is painfuly slow by exp(pi*sqrt(163)) · · Score: 5, Informative

    But if it's retro DOS games you're after check out dosbox which runs pretty fast and runs on many platforms.

    --
    Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
    1. Re:Bochs is painfuly slow by eriksarcade · · Score: 1

      That may be good and all, however it is no match for playing the games on an old dos machine. Mine is a Pentium 233mhz. currently running the version of dos that shipped with win98SE, for 2gb hdd support. It has full network support including webbrowsing using arachne. Its a great machine that i hope to put freedos on when it finally supports all the games i have. The case, monitor, keyboard, mouse and speakers havenot changed on this machine since 1993. it has only been upgraded.

    2. Re:Bochs is painfuly slow by Anonymous Coward · · Score: 0

      im sorry, but dosbox doesnt work well, and it's not a real dos emulator, it's got a CLI from hell that's a limited dos look-alike. many other games are also broken under dosbox. example: ultrabots, works on bochs, not on dosbox. cant run win 3.1, 9x, nt on dosbox, but u can under bochs (even 2000, xp, 2003, linux, bsd, etc). ive had better success w/ VDMsound + XP than with dosbox, dosbox refused to run wolf3d acceptably w/ sound+music, xp+vdmsound & bochs work great. bochs enables you to run real bare-metal ia32 apps, not some hacked up pseudo-emulated environment that doesn't want to cooperate (and zero docs also). another major advantage is that bochs supports direct iso cd image, floppy images and HD images, and a wealth of configuration options. You could emulate dd a real hd, emulate it under bochs to change the image, and reimage a machine, from within a VM. also, you could setup multiple VMs and create a private network on one computer for hacking/testing purposes. anytime i hear dosbox mentioned, it's some script-kiddie-neveau that wants to feel cool like they actually know what VGA register programming and demos are. dosbox is an unstable toy (very messy, angry, facist developers), bochs (more mature, fixable, portable) is hackers choice WIP that needs refinement. vmware ties you to ia32 hardware, but it has winbloze drivers out the ass for emulated hardware.

    3. Re:Bochs is painfuly slow by j1walker · · Score: 1

      Here's the idiot's guide to installing dosbox on Mac OS X

    4. Re:Bochs is painfuly slow by Per+Wigren · · Score: 1

      Pretty fast? I have a dual Athlon 1.2Ghz and I can't even run point'n'click-adventures like Kings Quest 6 and Willy Beamish in Dosbox without having the sound stuttering and everything is painfully slow, even when there are almost no graphics-updates on the screen at all...
      The idea is very nice though, I just wish they could add (optional) VMWare/DOSEmu-like virtualization instead of emulating every single component of the system...

      I really like the fact that I can do things like $ dosbox /path/to/dos/game/start.bat and it just works... Graphics, sound, joystick, mouse, everything... It will mount the dir /path/to/dos/game/ as C:, cd there and run start.bat... I'd love to see that work in DOSEmu! ;) I also love the advancemame scale2x-support.. It almost makes the old games look good again.. :)

      Just too bad it's so slow it's almost unusable on my dual 1,2Ghz Athlon :P

      --
      My other account has a 3-digit UID.
    5. Re:Bochs is painfuly slow by Per+Wigren · · Score: 1

      Sorry for replying to myself, I just had to correct myself on a few things.
      I just tried the recently released version 1.2.0 of DOSEmu and it seems to work WAY better than the 1.0.x-versions I had tried before... Now if they just add adlib-emulation so we can get some music and I'm happy! ;) Still not as easy as dosbox /path/to/program.exe, you still have to start the emulator, cd to the directory and run it, but at least it works now, and it's WAY faster than Dosbox on x86 machines...

      --
      My other account has a 3-digit UID.
    6. Re:Bochs is painfuly slow by exp(pi*sqrt(163)) · · Score: 2, Interesting
      I just wish they could add (optional) VMWare/DOSEmu-like virtualization instead of emulating every single component of the system...
      For those of us running OSX this is the only way to go as every single component is missing from my hardware! But yes, the thing that really sold me was the ease of use. I've spent many a merry hour trying to configure Bochs's config files only to have it find another obscure reason not to run. dosbox appears to be truly zero config!

      One fun thing is that I have the saved state of several DOS games on a small USB drive. I can then play those games on a W2K machine at work. Save them and the continue them at home on OSX. The drive even contains both of the executables to I can just plug this thing into any PC or Mac and carry on playing. No need to know the hardware of the underlying machine and set up a config file for it.

      PS On my own 1.2GHz Athlon my games run way too fast. (Eg. Populous is way outta control!)

      --
      Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
    7. Re:Bochs is painfuly slow by mav[LAG] · · Score: 1

      Dosbox's sound mixers are very correct but yes - they're horribly slow. I'm working on an MMX assembly version which preliminary testing shows to be roughly 100 times faster thanks to a little reorganisation of the data and processing 4 samples at a time with the saturation ops.
      I had this complaint with dosbox too but I worked out its real CPU requirements based on what it's emulating and it's much higher than I first thought: VGA + 386 + peripherals + decent sound card like an Ultrasound adds up to a frightening amount of processing power which must be emulated.

      BTW Kings Quest 6 works very well with frameskip set to 4 and CPU cycles set to 4500 on my Ghz PIII.

      --
      --- Hot Shot City is particularly good.
    8. Re:Bochs is painfuly slow by Per+Wigren · · Score: 1

      Interresting! So Dosbox's sound emulation is that much a bottleneck? Are we going to see your code in 0.62? ;)

      BTW, frameskip of 4 is usually just too noticable for me.. If I have to use frameskip of more than 2 I consider the game unplayable, it's too annoying...

      --
      My other account has a 3-digit UID.
    9. Re:Bochs is painfuly slow by mav[LAG] · · Score: 1

      Interresting! So Dosbox's sound emulation is that much a bottleneck?

      Proof coming soon :)

      Are we going to see your code in 0.62? ;)

      As soon as it works 100% - strange clipping bug when I run ImpulseTracker and some old DOS demos :(

      --
      --- Hot Shot City is particularly good.
    10. Re:Bochs is painfuly slow by drsmithy · · Score: 1
      But if it's retro DOS games you're after check out dosbox which runs pretty fast and runs on many platforms.

      Uh, the biggest problem I've had with getting old games to run is making the VM *slow* enough, not fast enough...

    11. Re:Bochs is painfuly slow by exp(pi*sqrt(163)) · · Score: 1

      Yup. MOSLO is good for that. How many games can you find written in BASIC with a timer calibration loop that bombs out with a divide by zero on startup?

      --
      Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
    12. Re:Bochs is painfuly slow by Moofie · · Score: 1

      MOSLO to the rescue!

      I bet that does really horrible things to your processor, though. Make sure your CPU fan is working, or you'll have yourself a little tiny Chernobyl under your desk.

      I remember answering the phones at Origin and telling people to download MOSLO to get Wing Commander to run properly on their P-60's. Now, if they had a Gravis UltraSound, they were pretty well not going to get any music ever. *wistful sigh*

      --
      Why yes, I AM a rocket scientist!
  12. Speaking of emulation, OT like mad by teamhasnoi · · Score: 4, Insightful
    Would the advent of the 64-bit Athlon mean that a PowerPC chip could finally be emulated?

    I know that in the past, the number of registers of the PPC was far in excess of the capabillities of the x86. Example: No PPC emulator yet exists, no matter what vaporware merchants have said in the past.

    Finally, my one experience with Bochs was on BeOS. I couldn't figure it out. On the other hand, Virtual PC was easy as pie. Why doesn't Bochs copy the usabillity of Virtual PC --- the gui is neat and clean, plenty of options; throw open source in the mix and we could have a weiner. (And a real alternative to MS owned, newly activation-coded Virtual PC.)

    I stopped upgrading when MS bought it. It was only fair.

    1. Re:Speaking of emulation, OT like mad by Anonymous Coward · · Score: 1, Interesting

      Actually, PPC emulation on x86 has been added to SheepShaver by Gwenole Beauchesne. Currently its only for Linux and can run up to Mac OS 8.6 with support for some new world roms. More info here.

    2. Re:Speaking of emulation, OT like mad by jmv · · Score: 1

      Would the advent of the 64-bit Athlon mean that a PowerPC chip could finally be emulated?

      Completely unrelated. You could probably write a PowerPC emulator for a 386 if you wanted to. Extra registers may (or may not) make the emulator a bit faster, but that's all. If there's no PPC emulator yet, it's probably because nobody cared to write one.

    3. Re:Speaking of emulation, OT like mad by brion · · Score: 4, Interesting
      QEMU has some experimental support for emulating a PowerPC (or SPARC or ARM or x86) processor, though of course it's less likely that many people would want to do so.

      QEMU's not as mature as Bochs, but it's much faster, based on dynamic translation; you might think of it as a little more like a JIT compiler than an emulator. The other really interesting thing about QEMU is that in addition to a full-machine emulation mode, it can run Linux binaries from one architecture directly, translating the system call parameters as necessary. In theory at least you should be able to run binary-only x86 software -- or win32 programs on Wine -- on Linux-PPC for instance.

      --

      Chu vi parolas Vikipedion?

    4. Re:Speaking of emulation, OT like mad by bccomm · · Score: 1

      This is not true: Virtutech Simics is capable of emulating the Opteron and the PowerPC (among others).

    5. Re:Speaking of emulation, OT like mad by Anonymous Coward · · Score: 0
      I must agree that QEMU is the coolest architecture in this virtual machine space that I've heard of.

      I like to think of them with this analogy.

      • vmware, user mode linux == traps and wrapper around calls
      • bochs == interpreter based vitrual machine ov a PC
      • qemu == jit-compiler based virtual machine of a PC.
    6. Re:Speaking of emulation, OT like mad by Gridle · · Score: 1
      There is a Sega Model 3 arcade hardware emulator in development. That hardware uses a PowerPC 603 or 603ev CPU at speeds ranging between 66 and 166 MHz. I can assure you the emulator is real.

      PPC hasn't been emulated previously because there hasn't been any demand for it.

    7. Re:Speaking of emulation, OT like mad by brion · · Score: 4, Interesting
      Why doesn't Bochs copy the usabillity of Virtual PC

      Bochs is really a debugging tool for people writing their own OS. It's written to be accurate and portable, not fast or convenient. For those of us not writing our own operating systems, we're just not the target audience.

      I've already extolled the virtues of QEMU's interesting capabilities and much greater speed. It's also I think a little easier to use than Bochs. It's not point and click, but it's a little more UNIX-friendly: you can run it from the command line in a sane manner compared with trying to cobble together a cryptic configuration file for Bochs.

      QEMU isn't perfect, though. While the latest release will run Windows 98, it may spontaneously crash during installation, etc, and so far only runs under Linux (though a Darwin port is in the works).

      --

      Chu vi parolas Vikipedion?

    8. Re:Speaking of emulation, OT like mad by Anonymous Coward · · Score: 1, Interesting

      Actually, there exists a PPC simulator. It is made by Virtutech. Haven't tried it, though, so I don't know how well it works.

    9. Re:Speaking of emulation, OT like mad by Anonymous Coward · · Score: 0

      Fabrice Bellard just keeps amazing me. Every few years his name pops up with the most amazing stuff. From compressing DOS-EXE's better than PKlite when he was seventeen to calculating the trillionth binary digit of pi, this guy just never stops. Now an x86, ARM, SPARC, and PowerPC emulator using dynamic recompilation. Jeez! We've got to get this guy working on a cure for cancer.

    10. Re:Speaking of emulation, OT like mad by Bulln-Bulln · · Score: 1

      No PPC emulator yet exists, no matter what vaporware merchants have said in the past.

      The Nintendo GameCube has a PPC CPU (Gecko, a modified G3). Currently there are two GC emulators. One called Dolphin and the other called Dolwin. Both are far away from being perfect, but both emulators emulate the CPU so well that some games boot.

    11. Re:Speaking of emulation, OT like mad by Anonymous Coward · · Score: 0

      You realize that in all of those screen captures, it's running on "tibook.homelan.org", right? Admittedly, I didn't look too hard for an x86 version, but it looks like it only runs on PPC so far. As such, it's not a very good emulator in that it runs on the hardware that it's trying to emulate. It seems to be a virtual machine.

    12. Re:Speaking of emulation, OT like mad by TimMann · · Score: 1

      Something is very wrong with your analogy if you have VMware and user-mode Linux in the same category.

    13. Re:Speaking of emulation, OT like mad by Anonymous Coward · · Score: 0

      it runs on x86 linux, requires a new world ppc rom image.

  13. If you want free VMWare check out Xen by enosys · · Score: 4, Interesting
    If you want free VMWare check out Xen. It's GPLed and it should actually be faster than VMWare. There is a catch though: the OS that runs inside must be modified. Linux is already supported. XP is almost ready but I wonder if they'll be allowed to distribute their modifications.

    Xen has already been covered on slashdot

    1. Re:If you want free VMWare check out Xen by Aneurysm9 · · Score: 0, Flamebait
      With assistance from Microsoft Research, we have a port of Windows XP to Xen nearly complete
      Hmm, does Micro$uck know they're working with that dreaded open source stuff here?
      --
      There was Cowboy Neal at the wheel of a bus to never-ever land.
    2. Re:If you want free VMWare check out Xen by KrispyKringle · · Score: 4, Interesting

      Or check out Plex86. It's by the maker of Bochs, but designed to be more like VMWare. Caveat: it only runs Linux at the moment.

    3. Re:If you want free VMWare check out Xen by Anonymous Coward · · Score: 2, Informative

      Plex86 also has been quite stale for the last couple of years.

    4. Re:If you want free VMWare check out Xen by cerberusss · · Score: 1

      What would be interesting to know is whether it runs Windows 2000 reliably, but I can't find anything on that. Any hints?

      --
      8 of 13 people found this answer helpful. Did you?
    5. Re:If you want free VMWare check out Xen by vegetablespork · · Score: 1

      But to run any non-Linux OS under Xen requires porting it. And that's a non-starter for the 99.9999999% of the world without access to the Windows source code.

      --

      Call (206) 338-5780 COLLECT for information about a genuine BA, BS, MA, MS, MBA, or Ph.D.

    6. Re:If you want free VMWare check out Xen by Wesley+Felter · · Score: 1

      You can't get any version of Windows that runs on Xen.

    7. Re:If you want free VMWare check out Xen by cerberusss · · Score: 1

      Then what has the poster of this thread been smoking? "If you want free VMWare check out Xen". I'm glad the company I work at is busy with a corporate license for VMWare. Because I haven't found ANYTHING open source which comes even remotely close to VMWare's offerings.

      --
      8 of 13 people found this answer helpful. Did you?
    8. Re:If you want free VMWare check out Xen by Wesley+Felter · · Score: 1

      Xen is (theoretically) great if you want to consolidate multiple Linux machines. But if you want Windows, forget it.

  14. Bochs is... by simrook · · Score: 5, Insightful

    great for OS Systems development, but not much more. If you are programming an operating system, there is nothing better then Bochs running with gdb debugging stubs. Peroid. All this talk "Bochs can't run photoshop at a good speed" and "Bochs takes for ever to load windows" is bulljive. Of course it does, because that's not the point! Why do I own a 386 and use it with DOS 6.22? Because I want to do assembly programming and test out algorithms written in IA32 assembly. If I tried to run PS 8 and WinXP on it and subsequently complained about the speeds, I'd be flamed to death. The same goes for bochs. Kudos to the developers! A lot of great improvements were put into this release, everything from 3D assembly instructions to a whole new disassembler. Bochs is every OS Developer's dream come true. And it's just gettin' better... (Also, the best "bug fix" imho is that you don't need an extra font installed in X-Windows now). And if you want to emulate windows and have it run fast, go buy a $400 PC from Walmart. They play quake fine while waiting for the latest kernel to compile. :-> - Simrook

    --
    'Truth' is linked in a circular relation with systems of power which produce and sustain it...
    1. Re:Bochs is... by cynyr · · Score: 1

      yes i know i'm trolling.... but... that $400 box from walmart probably will not play quake any better :-) just my $.02

      --
      All of the above was encrypted with a Quad ROT-13 method. Unauthorized decryption is in violation of the DMCA.
  15. Re:BOCHS != VMWARE by Anonymous Coward · · Score: 0

    Don't you mean that the other way around? :-P

  16. Windows 98 doesn't even work on it by Neo-Rio-101 · · Score: 2, Informative

    I tried bochs a while ago, thinking I could get a virtual Windows 98 running on top of Linux.

    I was wrong.

    It was hard to install, and even when it did (after waiting for 2 hours + on a 2.4Ghz machine), it crashed BAD.

    Serves me right I guess.

    --
    READY.
    PRINT ""+-0
    1. Re:Windows 98 doesn't even work on it by \\ · · Score: 3, Interesting

      I actually got Windows 98 installed and running on my Powerbook running OS X 10.3.

      It took several hours for it just to install, so long that I went to bed while waiting for it to finish.. and when I woke up, the install stopped somewhere and needed me to click continue or something. Took several more hours after that to install, for a total of something like eight hours, if not more.

      Once installed it ran EXTREMELY slow, and considering the OS X port of Bochs can't get online.. well, besides the fun of installing it, it's useless.

    2. Re:Windows 98 doesn't even work on it by Luke-Jr · · Score: 2, Funny

      FYI, Windows 98 crashes bad even without BOCHS...

      --
      Luke-Jr
  17. Check out qemu by lsd · · Score: 5, Interesting

    If you want a free, open-source and (fairly) portable x86 emulator that provides better performance than Bochs then you could do far worse than QEMU. It uses a nifty dynamic recompilation techinque for its CPU emulation which gives much better speed than Bochs's interpretive emulation while remaining relatively easy to port.

    It's a young project, and it has a long way to go before it'll be a real alternative to VMWare for most people, but it's getting there pretty quickly - the recently released 0.5.2 can already run Windows 98.

    1. Re:Check out qemu by Joel+Carr · · Score: 1

      Well your post has certainly grabbed my interest. Do you have a link explaining how to get windows 98 setup with qemu? I have never looked into qemu before so I'm certainly in no way familiar with it.

      The reference docs on the site you linked to says: "The downside is that currently the emulation is not as accurate as bochs (for example, you cannot currently run Windows inside QEMU)." I'm guessing this is a little outdated.

      After searching through some mailing lists it appears that Windows 98 can be run, but there may still be some problems with it.

      I'll start reading through the docs to find out how to use qemu properly, but if you have any links to windows 98 with qemu howtos or the like, I'd be interested in seeing them.

      ---

      --
      Any man who can drive safely while kissing a pretty girl is simply not giving the kiss the attention it deserves. -- AE
    2. Re:Check out qemu by Spy+Hunter · · Score: 1
      Wow, QEMU is improving at an incredible rate! From DOS to Win3.1 to Win98 in four months, and the last release was only a few days ago. Only four times slower than native code (65 times faster than Bochs!), and still getting faster. That's plenty fast to run IE/Word/Outlook/etc on modern processors. At the rate QEMU's improving, they should be able to run WinXP in a couple of months. Once that critical threshold is reached, I think the number of people using QEMU will suddenly skyrocket. I know I'll download it.

      I wonder if QEMU could be extended to start running some of the code native, like is suggested in the Plex86 FAQ for Bochs. That way, most of the code woud run at close to 100% of normal speed. Watch out VMWare! You would be able to run Windows under Linux the same way Classic runs under OS X, and it could be included with every Linux distro for free!

      --
      main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
  18. Re:Behind the times by j-pimp · · Score: 4, Insightful

    Gotta love that blazing static instruction translation speed! Auctually I gotta say I've noticed large speed improvements on i86 hosts between this and 2.02. Now if only they would release 2.1.1 already with the bug fix so you can compile in both x11 anf rfb(VNC) console support Also the bochs people outright admit that it is slow. They refuse to add any kind of trickery like running instructions natively on intel becasue its meant for debugging OSes and the like. Sometimes you need to be able to run through your OS's boot up one instruction at a time to find a bug. This allos you to do that.

    --
    --- Justin Dearing http://www.justaprogrammer.net/ We're just programmers.
  19. Bochs vs. VMWare vs. Plex86 background by arrianus · · Score: 5, Informative

    This post has no point. It just provides some general (hopefully interesting) background info.

    As many people pointed out, Bochs is an x86 emulator, rather than a virtualization system like VMWare. Emulation means that you have a representation of an x86 machine in memory, look at each instruction, and change the representation appropriately. Virtualization means the code runs on the actual CPU natively, and uses 386 ninja powers to intercept all I/O calls and reroute them to the base OS.

    As a result, Bochs will run on any platform. VMWare will only run on x86. Bochs is slow enough to be useless for most common uses (a bit over a 100x hit in speed). VMWare has almost no hit in speed.

    However, the free software community did have a project that attempted to reimplement VMWare. That project was called Plex86 (http://plex86.sourceforge.net/). For reasons that I do not know, Plex86 recently reinvented itself not to do full hardware virtualization -- rather, it does not implement the I/O layer, and instead provides special drivers for Linux to talk to its I/O layer. As a result, it can only run Linux (although it claims to run it reasonably well). They may implement drivers for other platforms, but I would be fairly sceptical of any real Windows support anytime soon. That seems a lot less useful now...

    The Plex86 project, however, claims the possibility of using their virtualization technology in conjunction with Bochs to make a useable system: "There is the potential to use plex86 as an accelerator for bochs, as was demonstrated some time ago." (source: Plex86 FAQ). Likewise, it seems that if Bochs was more intelligently implemented, they could use just-in-time recompliation, a la Java or Transmeta, since they are effectively treating the x86 ISA as bytecode. That would be in the very, very distant future, but if either of these is implemented, the Bochs project is not as hopeless for end-user use as it may at first seem... Either or both of these technologies ought to give reasonable performance.

    One problem is that VMWare is creating a patent minefield in front of Plex86 and Bochs. I am not familiar with all of the patents, but from what I've heard, they've got a pretty wide field of IP cut out. I'm not sure how hard they'll exploit it, since the people working there seem like nice guys, and understand the whole open/Linux/GNU/free/etc. thing. On the other hand, so did Caldera a few years back, and VMWare is definitely getting those patents for a reason....

    One final point -- properly used, emulators like Bochs can provide amazingly powerful debugging tools. You can run a full x86 machine (admittedly at very slow speeds), but grab snapshots of the system memory at different points. You can then roll back, use a capture of all inputs to roll forward, etc.

    1. Re:Bochs vs. VMWare vs. Plex86 background by Anonymous Coward · · Score: 0

      One problem is that VMWare is creating a patent minefield in front of Plex86 and Bochs. I am not familiar with all of the patents, but from what I've heard, they've got a pretty wide field of IP cut out.

      What about VMWare could they possibly patent that wasn't done by IBM mainframe software in the 1960s?

    2. Re:Bochs vs. VMWare vs. Plex86 background by Anonymous Coward · · Score: 0

      One question:

      Why can I run wine on my MAC?

    3. Re:Bochs vs. VMWare vs. Plex86 background by MyFourthAccount · · Score: 3, Informative

      Two additional (useless) trivia:

      1) Bochs & Plex86 are written by the same guy (well, the main developer of both is the same guy).

      2) Plex86 used to be called FreeMWare.

    4. Re:Bochs vs. VMWare vs. Plex86 background by Ann+Elk · · Score: 2, Interesting

      I suspect the future of emulation/virtualization environments will resemble dynamic translation projects like HP's Dynamo as described here. Unfortunately, HP's papers on this project are from 1999, so there doesn't appear to be much activity lately. Anyway, combining something like Dynamo with a virtualization environment would allow non-native applications to run without the excessive overhead of Bochs. In theory.

    5. Re:Bochs vs. VMWare vs. Plex86 background by Anonymous Coward · · Score: 1, Interesting

      It's not just theory. Dynamo was just another implementation of dynamic binary translation, with perhaps some more optimization than usual, but nothing that far out. Dynamic binary translation has been used in all speed-sensitive commercial emulators since mid-1990's, most notably in Digital's FX32, various PC emulators on Mac, and of course the Transmeta "code morphing" firmware. Apparently the QEMU guys are succeeding in their effort to create an open source implementation of the technology. There's nothing theoretical about it anymore.

    6. Re:Bochs vs. VMWare vs. Plex86 background by Anonymous Coward · · Score: 0

      No, wine executes instructions nativley not inside a virtual machine.

    7. Re:Bochs vs. VMWare vs. Plex86 background by polyp2000 · · Score: 1

      VMWare Question ...

      VMWare does not need to "emulate" the x86 (am I correct) the only thing it emulates is the hardware eg graphics cards etc. This is great for speed on x86 machines. But means that its not possible to port to ppc or other architectures without building an x86 emulation componont.

      Is there an open-source PC emulator (not plex) that works in a similar way?

      nick...

      --
      Electronic Music Made Using Linux http://soundcloud.com/polyp
    8. Re:Bochs vs. VMWare vs. Plex86 background by Anonymous Coward · · Score: 0

      Simple. They'll add x86 and/or internet to all their patent claims and it will become "innovative" enough to pass the USPTO tests for a valid patent.

    9. Re:Bochs vs. VMWare vs. Plex86 background by Anonymous Coward · · Score: 0

      You can't. Your Media Access Control address does not provide a good tangible surface for running and liquid down, much less a fine wine.

  20. Re:Behind the times by LnxAddct · · Score: 3, Informative

    I recently needed native windows support for a small project at the firm. (WINE wasn't doing it for me) and I fired up windows 98 in bochs. It was rather nice, had a 2 gig img and 128 megs RAM dedicated to it and it ran fairly smooth. Granted I could only boot it in this thing called "safe mode" or something like that. I did with it what I needed to do and then deleted the .img and .bochsrc. I never had to make any permanent changes to my computer. I must admit that Linux ( Unix in general) runs much better under bochs, but Windows was holding its own when IPS (instructions per second) was set to 5 million. I don't know if Windows was lagging as compared to Linux because of code quality or if bochs is geared towards linux more, or if that "safe mode" thing runs slower, so I'm not putting Windows down, just saying it doesn't seem to perform as well to me (Although I give Redmond an A+ for gui design).
    Regards,
    Steve

    P.S.Way to go bochs team! Keep up the awesome work.

  21. Re:we want 64-bit by LnxAddct · · Score: 3, Interesting

    It can emulate AMD's 64 bit processor just fine.
    Regards,
    Steve

  22. sorry, forgot to include proof... by LnxAddct · · Score: 4, Informative

    On their main page in the first paragraph it says ,"Bochs can be compiled to emulate a 386, 486, Pentium, Pentium Pro or AMD64 CPU, including optional MMX, SSE, SSE2 and 3DNow instructions."
    Regards,
    Steve

    1. Re:sorry, forgot to include proof... by Anonymous Coward · · Score: 0

      *makes karma whore note* ty.

  23. Re:delayed! by Anonymous Coward · · Score: 0

    Yeah, it was posted here on the 12th of January, 2004.

  24. Bochs DOES do 64-bit! by Hoser+McMoose · · Score: 4, Informative

    Uhh, did you bother to read the link? Ohh wait, this is /.

    If you HAD bothered to go to the BOCHS site you would notice that it DOES do 64-bit emulation. More specifically, it emulates the AMD64 instruction set (aka x86-64). This is rather nifty in that it allows developers to test out code for AMD64 without having to purchase the hardware. Obviously not an ideal development platform, but it could be useful for some.

    1. Re:Bochs DOES do 64-bit! by Anonymous Coward · · Score: 0
      To do x86_64 assembly and to count the performance cycles on my AthlonXP with this Bochs-x86, and to boot the ISO Suse64 :)

      For the next year, i will buy an Opteron 148 because today it's very expensive.

      open4free

  25. Virtualization... by fnord123 · · Score: 5, Informative
    Bochs isn't meant to be a high performance virtualization, as other posters have already clarified.

    Plex86 (and Xen, VMware, and Connectix, and Ensim, and others) are the things people should look at if they want fast virtualization of x86. The trouble all these technologies run into is that IO has to go through the "host" OS (the one actually running on the metal) - often popping into userspace to do it (read: context & ring switches --> slow!). This is necessary in order to allow multiple virtualized OS's to share the IO devices. This causes stuff that is IO intensive (games, compilers, databases, etc.) take a fairly serious performance hit. Interestingly enough, Intel is working on building this sort of capability in the chips directly - check out Vanderpool for instance. I don't know if AMD is doing anything similar, anybody heard anything?

    1. Re:Virtualization... by Anonymous Coward · · Score: 0

      Xen, VMware, and Connectix, and Ensim

      Connectix? I think you mean Virtual PC. Microsoft owns it now; Microsoft Virtual PC 2004 was released recently.

    2. Re:Virtualization... by Wesley+Felter · · Score: 1

      Xen has no host OS and it provides very efficient I/O (check the SOSP paper). So not all virtualization is alike.

      Vanderpool is vaporware for now; Intel hasn't described exactly what it is or how it works, so it's impossible to draw any intelligent conclusions about it.

  26. The main reason a PPC emulator doesn't exist by Sycraft-fu · · Score: 4, Informative

    Is lack of demand. Registers aren't relivant. It is a fact of a turing machine that any one can emulate any other. An x86 chip is perfectly capable of emulating a PPC chip. Now it might end up being slow (due to registeres needing to be in memory), but it would work fine. I actually have a feeling you could get it working pretty well. The 32 "general purpose" registers on a PPC actually aren't, many of them have specific tasks, and the number of registers actually on an x86 chip is not related to the number exposed by the ISA.

    However, regardless, you can make an emulator. You can make an emulator in 100% C or Perl or Java if you like, and one that is portable to any platform. It needn't be anything low level. It'd be slow, but it'd work just fine.

    Basically what it comes down to, is who wants a PPC emulator? I mean if you want a PPC system, get one. There are plenty available from IBM for reasonable prices. If it's Mac emulation you are looking at, well that's a problem. The Mac ROMs are not available outside of Mac hardware, nor is the OS, and without those, it is useless. So to run the emulator, someone would need a legit copy of the ROMs and OS, meaning they'd need to own a Mac. Well if you own the hardware an emulator is worthless.

    x86 emulation on the Mac is of much more intrest. First off, it's actually feasable to do. PC BIOS is easy to license from a number of manufacturers, and MS is happy to sell copies of Windows, even for virtual machines. Also there are cases where you have a Mac and 99% of what you do is done natively but there is the ONE app that you need for something that is Windows only. So you get an emulator. Well the only Mac only apps I can think of are things like Final Cut Pro, which would run like shit in an emulator, so you'll have native hardware if you want to use it.

    1. Re:The main reason a PPC emulator doesn't exist by Anonymous Coward · · Score: 0

      That's not true -- the guy at emulators.com spent many years attempting to write a PowerPC emulator, and never succeeded getting something useful. Since Mac Emulation is his entire business, he obviously saw the demand.

    2. Re:The main reason a PPC emulator doesn't exist by Anonymous Coward · · Score: 1, Informative

      Actually it's not really needed to have Mac ROMS anymore, since MacOS 9.1 (Maybe eve earlier versions) and later Apple included software roms as the OS was running on machines with very old roms which didn't support anything newer. With MacOS X there isn't any need for ROM support at all as it's all in the OS.

      What you need is a licensed OS from Apple, that's all...

    3. Re:The main reason a PPC emulator doesn't exist by Anonymous Coward · · Score: 2, Informative
      The 32 "general purpose" registers on a PPC actually aren't, many of them have specific tasks, and the number of registers actually on an x86 chip is not related to the number exposed by the ISA.

      I'd like to know which are not general purpose among the register son PPC. From the hardware point of view, register 0 is a bit special since it can't be used as a base register for addressing (and related instruction like effective address computation) but all the other are identical, i.e., the instruction set is quite orthogonal.

      Now from a software point of view, there are other conventions, like the fact that register 1 used as a stack pointer in all the ABIs that I know. Some other registers (r2, r11, r12 and r13 mostly) are reserved for specific tasks depending on the ABI. And then registers from r13 or r14 to r31 are preserved by subroutines while r0 and r3 to r12 or r13 do not need to be, r3 being used to return function results.

      But all of this only depends on the ABI, that you are using. An emulator has no business knowing it, since it is purely a software convention (again, except for register 0). Furthermore, assembler programmers and the best compilers (and perhaps even soon GCC with unit-at-a-time) are allowed to break the ABI when they know all points from which a subroutine may be called (especially for leaf subroutines). In C this essentially means static functions whose address is never taken.

      Please stop your FUD. Even with the most register-hungry ABI, you still have something like 16 absolutely orthogonal registers on PPC, and eight more between function calls for a total of at least 24. That's with the worst options, i.e., position independent code in functions that use dynamic stack allocation (alloca()) and therefore can't eliminate the frame pointer. On Intel you are left with 2 registers preserved across function calls (ESI and EDI) and 3 more destroyed by function calls (EBP is the frame pointer and EBX the PIC relocation register).

    4. Re:The main reason a PPC emulator doesn't exist by flok · · Score: 1

      To prove that; I once wrote an MSX emulator in GFA basic :-) (on an Atari ST)
      I emulated all chips (Z80, videoprocessor, etc.) and ran on average 1,5% of a real MSX (which runs at 3MHz, the Atari ran on 8MHz).
      You can find it here.

      --

      www.vanheusden.com - home of Multitail, HTTPing, CoffeeSaint, EntropyBroker, rsstail, bsod, listener, nagcon, nagi
    5. Re:The main reason a PPC emulator doesn't exist by Anonymous Coward · · Score: 1, Informative

      An x86 based PowerPC emulator does exist. look here
      runs in x86 Linux but requires a new world mac rom image to run.

      Screenshots are here

      Downloadable source here

    6. Re:The main reason a PPC emulator doesn't exist by iserlohn · · Score: 3, Insightful

      Too bad the mods aren't noticing your post.

  27. what would be the limit ... by Anonymous Coward · · Score: 3, Interesting

    of the silliness/interesting possibilities of layering all these things:

    Win98 on top of
    VMWare on top of
    Boch (or some other x86) on top of
    OS/X, Linux, FreeBSD of top of ....

    hehe, stupid, but might be fun to try if you got spare cpu power laying around... + plus you get to see what exactly VMware is doing to hardware (by looking a Bochs layer), or swap it around, and see what exactly Win98 is doing. Might be useful to find out all that hidden "functionality" in Windows for something like the Wine project. Just mouthing off here though...

    1. Re:what would be the limit ... by Anonymous Coward · · Score: 0

      the limit is run linux on 1st cpu and win$ on 2nd one with linux controlling it.

  28. Re:WINE for OS X by Anonymous Coward · · Score: 0

    How in the hell is the parent offtopic? /. reported that Darwine is going to use Bochs!

  29. Requires a 286 or better by psi42 · · Score: 1

    I need a pentium IV to run Commander Keen in dosbox.

    Absolutely amazing.

    --
    Defenestrate Windows...
  30. XP on X-Box by Anonymous Coward · · Score: 4, Funny

    Finally, now I can install windows XP on my xbox!

    (XP on Bochs on linux on xbox)

    1. Re:XP on X-Box by Anonymous Coward · · Score: 0
      Finally, now I can install windows XP on my xbox!

      (XP on Bochs on linux on xbox)

      Why not, they've run Windows 2000 on XBox.

  31. Re:WINE for OS X by dn15 · · Score: 1

    > It would be, if darWINE actually used Bochs... It does. Code from Bochs will be used to handle the emulation side of Darwine.

  32. DOSEMU by hsa · · Score: 2, Informative

    Now that you mention it, http://dosemu.sourceforge.net/stable/announce-1.2. 0.html is out. It's the PC Emulator for x86 based Linux.

  33. Yeah by Crazy+Eight · · Score: 3, Informative

    Plex86 is the VMware alternative.

    1. Re:Yeah by RLiegh · · Score: 1

      by alternate defination of the term "vmware alternative" where "vmware alternative" means "can only run another copy of linux, and only under linux". Unlike Plex86, vmware can run 98, NT, XP and FreeBSDs.

  34. Not really by mcc · · Score: 4, Informative

    It is a fact of a turing machine that any one can emulate any other

    It is a fact that they can. However that does not mean that it will be easy.

    It'd be slow, but it'd work just fine.

    This is exactly the problem: it would be slow. And up until a certain point, it's slow enough you might as well not do it at all. No, there's no commercial demand for PPC emulation on x86; there
    doesn't really need to be. People write emulators just because they can. Do you think there is any "demand" for an emulator for the Amstrad CPC? In the meantime, there's some hobbyist demand from people who are "curious" about OS X; there's the guarantee of instant infamy for anyone who succeeds. People have really tried, put a lot of effort into trying to, emulate the PPC on an x86. I've never seen anyone succeed. As it turns out, though, writing a PPC emulator that runs on the x86 just happens to be unbelievably difficult to do with anything even remotely approaching an acceptable speed of emulation due to the neatly mismatching design philosophies of the two instruction sets. Yeah, if there was a real commercial *NEED* for someone to emulate, an acceptable emulator could probably be created. But the issue is a little more complicated than "oh, no one wants it".

    If it's Mac emulation you are looking at, well that's a problem. The Mac ROMs are not available outside of Mac hardware, nor is the OS, and without those, it is useless. So to run the emulator, someone would need a legit copy of the ROMs and OS, meaning they'd need to own a Mac. Well if you own the hardware an emulator is worthless.

    Not only is this not the hard part, this is the part that has already been solved. Modern macintoshes no longer have anything significant in ROM. The ROM is just a tiny kickstart thing and the OS is booted entirely using the openly documented Open Firmware protocol. This part is a non-issue.

    Since the internals of an apple machine aren't that public, virtualizing the hardware might be a little bit difficult.. but, well, not that difficult, as practically all of the work has already been done for you in the form of the mac-on-linux project, a VMWare-like virtual machine for macintosh hardware that will let you boot OS X within a virtual machine on top of Linux. I am uncertain how much extra work needs to be done on top of that when emulating on the PC platform since I don't know what the internals of mac-on-linux look like. However, at the very least, the hardest and most voodoo-y part, actually getting it to boot, has already been done.

    As far as the OS goes, you can buy a copy of the Mac OS without buying an actual mac. As in, you can go to a store and buy a copy of Mac OS X 10.3 in a box. This is not unrealistic; just because someone is emulating doesn't mean they aren't willing to actually buy the OS. Case in point, everyone who emulates Windows on the Mac does in fact actually have to buy a copy of Windows.

    BTW, just out of curiousity, where are these PPC systems which you say are "available from IBM for reasonable prices"? I may just be going about it wrong, but I'm looking at IBM's website and the cheapest POWER-based system I can find is nearly $6000.

    1. Re:Not really by jsebrech · · Score: 1

      Not to mention that 68k mac emulation is just about perfect (and fast!) in the shape of basilisk II. I've used it to play around with macos 8. So it's really emulating the ppc that's the problem, not the rom, or the other various bits of hardware (which was a lot more exotic on 68k macs than on ppc macs).

    2. Re:Not really by Anonymous Coward · · Score: 0

      MacOS 7.5.3 is available from Apple. Combined with BasiliskII, it works wonderfully.

      You still need a Mac ROM, though.

    3. Re:Not really by Anonymous Coward · · Score: 0

      Note also that the 68000 has twice the amount of registers that the x86 has, which has not caused problems with emulation. So it's kind of disingenious to claim that the number of registers is a problem.

    4. Re:Not really by mcc · · Score: 1

      Um. First off, 68k emulation is not expected to go terribly fast.

      Second off, the 68000 may have twice the number of registers the x86 has, but the PPC has twice the number of registers the 68000 does! Emulating 16 registers on 8 registers is a problem to solve, emulating 32 registers on 8 registers seems a little bit daunting. This is even before you take into consideration that 4 of the x86 registers are not really general purpose, 8 of the 68000 registers are not really general purpose, and all 32 of the PPC's registers are potentially general purpose...

      I don't think you can totally discount the register issue.

    5. Re:Not really by alan_dershowitz · · Score: 1

      It's interesting you mention this, because the Dolphin Gamecube emulator manages to emulate the Gamecube's 486 Mhz powerpc CPU at speeds fast enough to play 2D games at full speed on an Athlon 1900+. My assumption is that this means the 3D hardware is the bottleneck, not the CPU emulation itself.

      It's pretty nice, considering I'm running a 400Mhz blue and white G3 at home right now, which can run OS X just fine. Before this emu came out, I didn't even think such a thing was possible. I hope they make their PPC emulation code available.

      http://www.dolphin-emu.com

    6. Re:Not really by drsmithy · · Score: 1
      As far as the OS goes, you can buy a copy of the Mac OS without buying an actual mac. As in, you can go to a store and buy a copy of Mac OS X 10.3 in a box.

      You can buy it, but just remember it isn't legal to *run* it on anything except Apple hardware.

    7. Re:Not really by pwroberts · · Score: 1

      "People write emulators just because they can. Do you think there is any "demand" for an emulator for the Amstrad CPC?"

      Hey, don't knock the Amstrad CPC :-)

      I owned one as a kid (before selling it to get some money towards a Commodore Amiga), and enjoyed many years of 2.99GBP ports of Spectrum games...

      Years later I was delighted when I found a working emulator for the PC and a huge archive of CPC games. And if I hadn't found one, I'm sure I would have demanded/written one eventually!

  35. But If you don't need the desktop... by PishiGorbeh · · Score: 1

    I have a sugesstion. If you are like me and have migrated from Windows to Linux then you should give Wine a try.. You see, All I found that I really needed were a few key windows apps (Outlook, Photoshop, Illustrator.. etc.) Wine takes a lot of patients and hard work at first to get the apps running correctly (recompiled several times, a learning curve I guess) but, if you persist it works great. Very fast. RARELY crashes the app.(once about every couple of weeks) It's even better than the Crossover office plugins that cost money. I found that I did not need the Windows desktop.. Just the apps. After all.. I'm very happy with the Gnome desktop ;-)

    1. Re:But If you don't need the desktop... by peragrin · · Score: 1

      um, wine only works on the x86 archetitures, you have to have an amd, or pentium processor. unlike bochs which simulates the whole computer, and can be cun on anything, giving you ultimate in portablity.

      --
      i thought once I was found, but it was only a dream.
    2. Re:But If you don't need the desktop... by Hellkitten · · Score: 1

      wine only works on the x86 archetitures

      So if you're on an non x86 architecture you could use wine running under linux runnong on bochs running on whatever OS on non x86 hardware. So you can save both the x86 hardware and OS cost.

      --
      - We are the slashdot. Resistance is futile. Prepare to be moderated -
    3. Re:But If you don't need the desktop... by jrockway · · Score: 1

      qemu is what you'd want for ppc. It's MUCH faster.

      --
      My other car is first.
  36. darWINE's planned x86 emulator by brion · · Score: 2, Informative
    "The second phase is to then integrate in WINE the QEMU binary translator."

    Of course either way it's speculation at this point.

    --

    Chu vi parolas Vikipedion?

  37. I can confirm: Bochs is a major slowpocke by Qbertino · · Score: 1

    I actually installed this full-range x86 emulator on Linux and then installed Win95 on it.
    Aside from the fact that Win95 does a bazillion low level operations that all have to be emulated, Bochs itself really is _s_l_o_w_.
    Other than checking for low level compliance with basic x86 stuff it's completely useless on a productive application usage level.
    Then again, I have to say that Win95 actually *did* run. Err, make that crawl.

    --
    We suffer more in our imagination than in reality. - Seneca
  38. Re:Behind the times by Anonymous Coward · · Score: 1, Insightful

    Surely they could create an archutecture that supports pluggable CPU libraries. Then you could run the full reference software x86 library, or those of us who simply want to run windows on our desktop could use a more sophisticated library. QEMU already has a portable x86 library that supports dynamic translation and is 65 times faster than BOCHS.

  39. Boch CAN run Windows XP as a guest OS by rcb1974 · · Score: 5, Informative

    I got bochs v2.1 to run Windows XP without any problems. The trick is to configure bochs with --enable-cpu-level=5 --disable-sse.

    Here are some screenshots and a howto

    1. Re:Boch CAN run Windows XP as a guest OS by rcb1974 · · Score: 1

      crap my Tripod website is getting overloaded. Anyone got a place where I can temporarilly host my bochs Windows XP screenshots and HOWTO?

    2. Re:Boch CAN run Windows XP as a guest OS by adamjaskie · · Score: 1

      And you are suprised at this... WHY?

      --
      /usr/games/fortune
  40. fau machine by Anonymous Coward · · Score: 0

    anyone heard of fau machine?
    www.faumachine.org

  41. and it's ultra, deadly slow by Anonymous Coward · · Score: 0

    It's uselessly, ultra, deadly slow.

  42. Win98 on qemu by brion · · Score: 3, Informative
    I gave a whirl at installing Win98 Second Edition into qemu 0.5.2 (x86 binary) on my Linux box (Fedora Core 1 on an old Pentium II).
    • Create a hard disk image:
      dd if=/dev/zero of=win98.img bs=1M count=1024
    • Stick in your win98 install CD and go!
      qemu -cdrom /dev/cdrom -hda win98.img -boot d
    • At the boot menu select boot to DOS option. Run FDISK and create a primary DOS partition. Exit qemu.
    • Start up qemu again, this time go into Windows setup. Should be fairly standard.
    • At some point it may give an odd error message or two. For me it complains about being unable to allocate memory for the device manager. A bit later it said it couldn't load explorer.exe and that I'd have to reinstall Windows; just rebooting (exit, restart qemu) got it going again.
    • At some point after one of the reboots it'll try to install some networking stuff. For some reason I can't get Win98 to access the CD-ROM, so it can't install this and won't boot up in non-safe mode. You may want to perform this next step earlier:
    • Boot off the CD into DOS w/ CD-ROM support. Copy the *.CAB files from d:\win98 into c:\windows\system\precopy. Reboot and if necessary go into safe mode and fiddle with the networking control panel to get it to finish installing things.
    • Voila! It sort of works.
    Some caveats; I haven't been at it long but here's my problems so far:
    • Video is VGA 16-color only, and on every boot it wants me to look for a better video driver.
    • Can't access CD-ROM from windows.
    • At least on an old Pentium II, the animated menus are _really_ slow. Turn them off!
    • I haven't gotten networking working yet.
    • Hardware detection wizard crashes reliably.
    • Sometimes the keyboard & mouse get locked up.

    However it gets that far, which is impressive. :) And while the performance isn't super in absolute terms, it runs much faster on an old Pentium II than I ever got Bochs to run on my 2 GHz Athlon. I'm expecting good things in the future...

    --

    Chu vi parolas Vikipedion?

    1. Re:Win98 on qemu by Joel+Carr · · Score: 1

      Thanks heaps for the detailed reply. I've just been reading through whatever docs I can find and going through some of the usage examples. I must say I'm very impressed! I've heard of the project before, but never thought it was worth looking at. Silly me...

      Only problem I've been having so far is that running qemu usually kills my mouse when I exit it. Not sure why, but I haven't looked for solutions yet either. ;)

      Thanks again for your help.

      ---

      --
      Any man who can drive safely while kissing a pretty girl is simply not giving the kiss the attention it deserves. -- AE
    2. Re:Win98 on qemu by bprice20 · · Score: 1

      All i can say is ...con mutherf***ingradulations to the qemu developers, you fellas may have the killer open source app on your hands. I do have a few recommendations to users though.
      1. The install goes alot faster if you use an iso of win98 instead of cdrom emulation, you can make one by doing the following: dd if=/dev/cdrom of=win98.iso where /dev/cdrom is the pointer to your cdrom device.
      windows 98 install stats:
      real 12m58.470s
      user 12m29.184s
      sys 0m4.476s to first reboot
      2.I haven't yet gotten networking yet either but I can honestly say that performance on my athlon xp 2400+ nforce2 board w/ 1 GB 333 ddr, running gentoo linux and 2.6.2 kernel w/ mm patchset is at least equal to vmware.
      I'll post back when i get networking working properly, for now I'm off start debugging a windows 2000 install. by the by does anyone have a G4 running linux that would like to try their hand at getting gemu to compile, I am really intersted in getting a powerbook and If i can get 70% of the performance I'm getting here I can skip the now M$ owned virtual PC

  43. You sound like a volunteer by Gothmolly · · Score: 1, Flamebait

    Someone with so much time on their hands, and so much technical knowledge sounds like the perfect addition to the Bochs team. In other words, put your code where your mouth is, flamer.

    --
    I want to delete my account but Slashdot doesn't allow it.
  44. yuo==rong by Anonymous Coward · · Score: 0

    Simics has powerpc emulation on x86, and IBM has an internal product that does as well. Someone else here writes of a free software project called Sheepshaver that does the same, although I have no experience with it.

    As far as your complaint regarding x86 architecture, it is completely bogus. Emulators are inefficient, and unless you have a multitude of registers you can not map registers to emulated registers because you have to run your own code. Memory is a good place for emulated registers to reside, and is likely to be THE place for an emulator, regardless of whether it runs on an IA32, AMD64, or a RISC machine.

  45. You're kidding right? by Anonymous Coward · · Score: 0

    DOSBOX has speaker, Adlib, CMS, SB pro 2.0, GUS, MT-32, Disney, and Tandy sound. Considering sound support was the main issue when it came to compatibility for DOS games, I'd say DOSBOX's sound support is its biggest feature.

    1. Re:You're kidding right? by Per+Wigren · · Score: 1

      I was not kidding, I was talking about DOSEmu's lacking soundsupport, not DOSBOX's... ;)

      --
      My other account has a 3-digit UID.
  46. Looks like it's starting up again... by Pii · · Score: 1
    News as recent as December...

    Here's the new project page...

    --
    For those that would die defending it, Freedom
    has a sweet taste that the protected will never know.
    1. Re:Looks like it's starting up again... by Anonymous Coward · · Score: 0

      Posted By: kevinlawton
      Date: 2003-12-19 12:32
      Summary: Help startup plex86 project again, please donate!

      All,

      Great news from SourceForge! They've added a mechanism for
      people to donate money to their favorite projects.

      Over the last year, I've pursued a number of companies in search
      of a sponsor for this new plex86 effort (lightweight Linux-only VM).
      It has not been easy. Particularly with the onerous strings attatched to some particular offers (yes, I'm talking about you, Mr Wayne)

      I've wanted to fire up this project again, and the SourceForge donation
      system comes at just the right time. This is a great mechanism for
      people to collectively sponsor authors of their favorite projects
      and help create the project's success rather than waiting for a
      commercial entity to pick it up or have it languish.

      Please consider investing in this project. I've put in years of
      blood sweat & tears in my projects, and am ready for more. But
      I need your help!
      https://sourceforge.net/donate/index.php?gr oup_id= 72689

      Also, if you are willing, please forward this to a couple interested
      friends. With only a little effort on each person's part, plex86 could
      get fired up to full speed in a matter of days.

      Thanks kindly,
      -Kevin

    2. Re:Looks like it's starting up again... by GreyPoopon · · Score: 2, Interesting

      It's good to see that there is recent news. However, since the project has been reduced to provide only a lightweight VM and is thus only capable of running instances of Linux on Linux, it is far less usefull. Don't get me wrong -- there's still some value in being able to run multiple instances of Linux on the same box. However, I think many were hoping that Plex86 would offer a no-cost gateway to switching from Windows to Linux. For anybody out there who has only one or two pieces of software that keep them on Windows, a free and fully functional virtualization layer would have been very well received. VMWARE is an awesome piece of software, but people who are looking to switch to a FREE OS like Linux are going to balk at having to pay $300 for the transition period.

      --

      GreyPoopon
      --
      Why is it I can write insightful comments but can't come up with a clever signature?

  47. There's a reasonable one now... by alan_dershowitz · · Score: 1

    It's not open source, but the Dolphin Gamecube Emulator can actually emulate a gamecube on the PC, which of course includes its 486Mhz PPC processor. So it's possible, even on 32 bit. I was quite surprised by this. I really hope they will Open source at least their processor emulation.

    http://www.dolphin-emu.com/

  48. Try this link for Windows XP screenshots & how by rcb1974 · · Score: 1

    I just remembered I have a homepage at Cornell (my university network..) that can handle the /. bandwidth demand. Try this link for the Windows XP under bochs HOWTO & screenshots.

  49. BUT...will it run windows? by RLiegh · · Score: 1

    Specifically XP.

  50. windows 98 works great under bochs by rcb1974 · · Score: 1

    Uh, I got windows 98 to work very well under bochs. Its actually quit fast (all things considered) on my 2.4GHz P4. I even have working sound and networking. Dont believe me? See this screenshot that I'm going to take right now...

    1. Re:windows 98 works great under bochs by Neo-Rio-101 · · Score: 1

      Yeah I got that far as well, but I had to tweak the settings in bochs in order to get it as far as the desktop. Are you using the newer version? I used the one just prior to the new one, and installation was a pain. Win98 set up didn't work properly and I had to manually format the HD image. Countdown to selecting boot device was a bit of fun as well.

      --
      READY.
      PRINT ""+-0
  51. Wrong assumption by RLiegh · · Score: 1

    Why is it that people on slashdot always assume that because you spent ${SHITLOAD OF CASH} on something, that you have a further reserve of ${SHITLOAD OF CASH}? It's probably -likely even- that having paid out the money for those two applications that ${SHIT LOAD OF CASH} has been reduced down to ${Laundry Quarters}.

    Unless he works at a corporation; then you have to wonder why he doens't talk his boss into sponsoring Plex86.

  52. Re:Try this link for Windows XP screenshots & by Anonymous Coward · · Score: 0

    http://www.netscape.net/ - free pages that don't have a low bandwidth limit

    http://www.1and1.com/ - free hosting account for 3 years. Hard to get set up but works once you get it.

  53. Don't forget Dosbox by SuiteSisterMary · · Score: 2, Informative

    DosBox is, of course, the other option.

    --
    Vintage computer games and RPG books available. Email me if you're interested.
  54. if If x86 to PPC is slow, why is PPC to x86 fast? by caveat · · Score: 1

    [W]riting a PPC emulator that runs on the x86 just happens to be unbelievably difficult to do with anything even remotely approaching an acceptable speed of emulation due to the neatly mismatching design philosophies of the two instruction sets.

    Sooo...why does the PPC do a fair job of emulating an x86 then? I have VirtualPC on my 1.25 DP G4; it only uses ~60% [of *one* proc] when it's going full-tilt, yet it feels about as fast as my PIII-800 at my last job. Not screaming bleeding-edge fast, but perfectly usable for 2000/XP. Is it really because the PPC is that much leaner and more efficient a design than the x86, or is there just much less interest in an 'optimized' PPC emulator?

    --

    Facts do not cease to exist because they are ignored. - Aldous Huxley
  55. !True Anymore by kensai · · Score: 1

    Check out Sheepshaver x86 at http://www.emaculation.com/sheepshaver.php
    It only emualtes older pre-G3 PPC however.

  56. Re:if If x86 to PPC is slow, why is PPC to x86 fas by mcc · · Score: 1

    Perhaps I should have been more clear. What I mean is that the contrasting design decisions of the PPC and x86 make it very very easy to emulate x86 on PPC and very difficult to go the other way around. Here are the reasons why.

    This is a vast oversimplification, but when you are emulating you want two things. First off, you want it to be easy to efficiently rephrase the source instruction set into the target instruction set. Second off, you want to be able to hold all the emulated registers in hardware registers (since machine code is often very carefully optimized such that the registers are being used to their full potential).

    The first issue has to do with RISC vs CISC-- Reduced vs Complex instruction set computing, two differing design philosophies. Again I'm probably oversimplifying here, but the latter-- the philosophy x86 follows-- has to do with having a vocabulary of lots of instructions which do complicated things; the former, the philosophy PPC follows, has to do with having a small number of instructions which do simple things. The idea here is that the RISC chip does less work per instruction, but it is hopefully able to execute so many more instructions in the same amount of time that overall it does work faster. Neither x86 nor PPC perfectly follows their philosophies, but for the sake of this argument it comes out about the same.

    This makes RISC chips happen to be unnaturally good in the specific case of emulation. Since RISC chips very rarely have instruction sets that that dramatically differ from one another, and since conceptually all CISC instructions can be represented as a series of RISC primitives, all that a RISC chip has to do when emulating another arbitrary instruction set is break the source instructions down into piecies. A CISC set meanwhile has to do a lot of wierd molding in order to remain optimized. (As a random thing to consider, emulators that run on a CISC/x86 machine often must involve assembly to run well; emulators for PPC machines are almost universally written in plain old c.) When you look at the specific case of emulating a RISC machine from a CISC machine, this goes from being a quirky advantage of RISC to a major pain.

    Basically, look at it this way: let's say you want to pull two values from memory, add them, and store the result back to memory. A CISC chip might have a single instruction that does this; on RISC, you would issue two load instructions, an add instruction, and a store instruction. If you're emulating CISC from RISC, no problem, you just look up what the loadloadaddstore instruction means and how to break it down into RISC instructions. But if you're emulating RISC from CISC, you have the difficult and expensive task of constantly looking at the incoming stream of instructions and trying to analyze them to figure out how you can reorder them and possibly merge them together into bigger instructions... not something you want to be doing in realtime.

    The second issue is the registers, which has already been discussed-- hitting memory is relatively VERY expensive. This isn't so much a problem in normal compiled programs because you can carefully arrange the register usage to be efficient, but with emulation it's a massive pain because you don't have any higher-level information about the program and so have very little basis from which to optimize.

    These mismatches between the designs of the two chips just happen to serve to create a case where while both x86 and PPC do many things well, the specific job of emulating PPC is something of a perverse case for x86. This is all I was trying to say.

  57. Citrix by Quill_28 · · Score: 1

    Is this a potential replacement for citrix, at least part of it? Or is it too slow?

    Meaning I could throw a window from a unix server running MS access to any unix box or windows box(with the added software).

    Or am I missing something.

    1. Re:Citrix by Anonymous Coward · · Score: 0

      This has nothing to do with 'terminal servers' in windows. Bosch is sort of like VMWare, only much slower and less user friendly (what else do you expect from Open Source? :p ).

    2. Re:Citrix by Quill_28 · · Score: 1

      But could it be done?

  58. do 32-bit DOS programs work yet? by Anonymous Coward · · Score: 0

    Bochs 2.0 won't run 32-bit (DPMI) DOS programs. At least, not for me. DJGPP programs, trying to load Borland's DOS extender (32RTM.EXE), or running the DOS version of DOOM (using DOS4/GW) all cause the emulator to crash.

    Has this been fixed?

  59. I'm running MacOS 8.6 on my Athlon XP right now by Newtonian_p · · Score: 1

    What the fudge are you talking about? There's been an PPC mac emulator out for a while now. It's the x86 Linux port of SheepShaver. It emulates a G3 mac at good speeds on my Athlon XP 2700+ but can only run up to MacOS 8.6.

    --

    There are 2 kinds of people in this world: Those who write in decimal and those who don't

  60. LAST POST! by Anonymous Coward · · Score: 0

    BOOYAH FUCKERZ.

  61. correction by Spy+Hunter · · Score: 1

    Plex86 *used* to be a (future) open-source VMWare alternative. Now, after a long period of basically no development, its goals have been lowered substantially. I think the current plan is to do basically the same things that User Mode Linux already does, just in a slightly different way under the hood so that slightly fewer kernel modifications are required. Plex86 isn't going to be running Windows anytime soon. Disappointing, isn't it.

    --
    main(c,r){for(r=32;r;) printf(++c>31?c=!r--,"\n":c<r?" ":~c&r?" `":" #");}
    1. Re:correction by Crazy+Eight · · Score: 1

      Whoops! You guys are right. Plex86 has changed course, and yes, it is disappointing.

  62. Networking by brion · · Score: 1

    Yes, qemu emulates an NE2000 which can connect to the host via the tun interface.

    --

    Chu vi parolas Vikipedion?

  63. Re:if If x86 to PPC is slow, why is PPC to x86 fas by Elladan · · Score: 1

    This is just plain ridiculous. If anything, emulating a PPC on another platform is easier than emulating an x86. Why? Because the x86 instruction set is psychopathic. It's like it was designed by sadists. Ugh.

    The PPC instruction set it pretty simple in comparison. It's easy to understand. It's easy to emulate.

    Saying it's "hard" because it might be slow is all nice and good, but that's not hard. That's just slow. Actually writing a functional emulator is not (in comparison) hard. It's just kind of unrewarding, with the lack of demand and all.

    All this blah blah blah about the register sets is absurd. Here, watch me emulate the PPC register set on a Commodore 64:

    long reg[32];
    long altivec[32][4];

    OMFG! I am teh hax0r god of the universe! *rolls eyes*

  64. Re:if If x86 to PPC is slow, why is PPC to x86 fas by Anonymous Coward · · Score: 0

    Here, watch me emulate the PPC register set on a Commodore 64:

    long reg[32];
    long altivec[32][4];

    OMFG! I am teh hax0r god of the universe! *rolls eyes*


    IIRC, "long" is 16 bits on the C64.

  65. Re:if If x86 to PPC is slow, why is PPC to x86 fas by Anonymous Coward · · Score: 0

    No conforming C compiler can implement char, short, or long with less than 8, 16, or 32 bits, respectively. The 6502 was an 8 bit processor anyway, why would they support multiple precision math for 16 but not 32 bits?