Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bochs 上手指南

说明

  • 本页记录在 Linux 环境中下载, 编译并安装 Bochs 模拟器的过程.
  • 适合作为 x86 模拟调试环境的基础搭建参考.

下载代码, 编译

到https://sourceforge.net/projects/bochs/files/bochs, 下载bochs-2.6.9.tar.gz

tar -xf bochs-2.6.9.tar.gz -C $HOME/develop/software

# 安装编译所需依赖
sudo apt-get install build-essential g++ xorg-dev bison

cd $HOME/develop/software/bochs-2.6.9

# ./configure --prefix=$HOME/programs/bochs --enable-debugger --enable-disasm --enable-iodebug --enable-x86-debugger --with-x --with-x11
./configure --prefix=$HOME/programs/bochs --enable-disasm --enable-iodebug --enable-x86-debugger --with-x --with-x11 --enable-gdb-stub

make -j10 && make install

添加环境变量, ok

测试: bochs