ArticleslgStudy

computer science

Bochs

Bochs is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bochs rather than just read about it. In short: Bochs (pronounced "box") is a portable IA-32 and x86-64 IBM PC compatible emulator and debugger mostly written in C++ and distributed as free software under the GNU Lesser General Public License. It supports emulation of the processor(s) (including protected mode), memory, disks, display, Ethernet, BIOS and common hardware peripherals of PCs.

Bochs — main illustration
Bochs — illustration

Key takeaways

  • Bochs belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bochs to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bochs from memory before moving on to harder problems.

Reference excerpt

Bochs (pronounced "box") is a portable IA-32 and x86-64 IBM PC compatible emulator and debugger mostly written in C++ and distributed as free software under the GNU Lesser General Public License. It supports emulation of the processor(s) (including protected mode), memory, disks, display, Ethernet, BIOS and common hardware peripherals of PCs. Many guest operating systems can be run using the emulator including DOS, several versions of Linux, Xenix, Microsoft Windows, BSDs and Rhapsody OS (precursor of Mac OS X Public Beta). Bochs runs on many host operating systems, including Android OS, Linux, macOS, PlayStation 2, Windows, and Windows CE along with its derivatives. Bochs is mostly used for operating system development (when an emulated operating system crashes, it does not crash the host operating system, so the emulated OS can be debugged) and to run other guest operating systems inside already running host operating systems. It can also be used to run older software — such as PC games — which will not run on non-compatible, or too fast computers.

History Bochs started as a program with a commercial license, at the price of US$25, for use as-is. If a user needed to link it to other software, that user would have to negotiate a special license. That changed on 22 March 2000, when Mandrakesoft (later Mandriva) bought Bochs from lead developer Kevin Lawton and released it for Linux under the GNU Lesser General Public License. Support for hosting on Windows XP ended with version 2.6.10.

Use Bochs emulates the hardware needed by PC operating systems, including hard drives, CD drives, and floppy drives. It doesn't utilize any host CPU virtualization features, therefore is slower than most virtualization (as opposed to emulation) software. It provides additional security by completely isolating the guest OS from the hardware. Bochs also has extensive debugging features. It is widely used for OS development, as it removes the need for constant system restarts (to test code). BFE, described as a "Graphical Debugger Interface for the Bochs PC Emulator", is a graphical interface for the debugger within the Bochs PC emulator that makes it possible to debug software step-by-step at the instruction and register level, much like Borland's Turbo Debugger.

Emulated hardware

Processor Bochs emulates some Intel and AMD x86 processors starting from the i386 to modern Core and AMD64 (x86-64) architectures. It supports real mode, protected mode, virtual 8086 mode, and long mode (64-bit) and includes, depending on the processor chosen, support for FPU (x87), MMX, 3DNow!, SSE extensions, AVX extensions, AMX and hardware virtualization extensions (VMX/SVM). It is capable to emulate symmetric multiprocessing, allowing the emulation of multi-core/multi-CPU setups (up to 8 CPUs).

Motherboard It is cabable of emulating a standard PC motherboard with the Intel i430FX, i440FX (PCI-based), and i440BX (with AGP bus support) chipsets as selectable options, alongside the ISA bus architecture. In addition, system controllers of such virtual motherboard are also emulated, including the Programmable Interrupt Controller (PIC - dual 8259A), Programmable Interval Timer (PIT - 8254), Real-Time Clock (RTC/CMOS), DMA controller (8237A), and Advanced Programmable Interrupt Controller (APIC / I/O APIC). The last one has basic support for modern OS power management if enabled. The RAM memory is configurable up to several gigabytes.

Storage Standard IDE/ATA disk controllers (supporting up to 4 drives) are supported, AHCI (SATA), and floppy disk controllers (supporting standard 3.5" and 5.25" disk images). The media types supported for the hard disk drives are flat images, growing/sparse images, VMDK, VHD, VHDX, etc; for CD-ROM/DVD-ROM drives are ISO files or physical host drives and finally there is support for floppy disks.

Graphics You can choose a standard VGA device, with full register-level emulation of a standard VGA adapter. A Bochs VBE (VESA BIOS Extensions) is also available, which it is a custom virtual graphics adapter supporting high-resolution true-color modes (up to 2560x1600 and beyond). Other options are possible, including the emulation of the Cirrus Logic CL-GD5430 (ISA) and CL-GD5446 (PCI) adapters.

Voodoo emulation Bochs emulates some graphic cards from 3dfx, including Voodoo1, Voodoo2, Voodoo Banshee, and Voodoo3 2D/3D accelerators.

Geforce emulation Nvidia Geforce emulation was added in Bochs 3.1 (as experimental feature) and it provides AGP-based emulation for four models: GeForce 2 Pro, GeForce 3 Ti 500, GeForce FX 5900, and GeForce 6 6800 GT. Most 2D acceleration features are complete, while 3D rendering remains under development. It requires to select the i440BX chipset in motherboard config, assigned it to AGP slot #5 and an external original Nvidia VGA BIOS ROM to work properly..

Audio As sound Cards, it emulates the Sound Blaster 16 (ISA) and Ensoniq AudioPCI (ES1370) cards, alongside the standard PC speaker.

Networking As sound cards, it emulates NE2000 (ISA and PCI), Intel e1000 (Gigabit Ethernet), and Realtek RTL8139 network adapters. Networking can be routed via host TAP/TUN interfaces, SLIRP (user-mode NAT), or virtual socket hubs.

Peripherals The input and ports compatible with the emulator include PS/2 keyboard and mouse, serial ports (UART 16550A), parallel ports, and a gameport (joystick). The USB is also supported, including UHCI (USB 1.1), OHCI, EHCI (USB 2.0), and xHCI (USB 3.0) host controllers, along with emulated USB devices like hubs, mice, keyboards, and mass storage sticks.

Device table

References

Illustrations

Bochs illustration
Bochs illustration

Worked examples

Example 1 — a first encounter with Bochs

Start with the simplest possible case. Write down what Bochs claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bochs before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bochs ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bochs

In research
Bochs appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bochs in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bochs is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1994 software, Cross-platform software, Formerly proprietary software, so understanding it makes those chapters shorter.
In everyday life
Look for Bochs outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bochs” →

How to study Bochs in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bochs means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bochs out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bochs in simple terms?

Bochs (pronounced "box") is a portable IA-32 and x86-64 IBM PC compatible emulator and debugger mostly written in C++ and distributed as free software under the GNU Lesser General Public License. It supports emulation of the processor(s) (including protected mode), memory, disks, display, Ethernet…

Why does Bochs matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bochs?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bochs.

Tags

  • 1994 software
  • Cross-platform software
  • Formerly proprietary software
  • Free emulation software
  • Free software programmed in C++
  • Linux emulation software
  • MacOS emulation software
  • Pocket PC software
  • Software using the GNU Lesser General Public License
  • Windows emulation software
  • X86 emulators

Keep exploring