How to compile bochs

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
yaocong
Posts: 22
Joined: Fri Sep 09, 2005 11:00 pm
Location: China
Contact:

How to compile bochs

Post by yaocong »

Hi,

I want to re-compile bochs with microsoft visual c++ 6.0 to support x86-64 and SMP functions.

But I don't know how to compile it with vc++, Could you help!

Many appreciates!
I like the Dream of the Red Chamber.
Da_Maestro
Member
Member
Posts: 144
Joined: Tue Oct 26, 2004 11:00 pm
Location: Australia

Re: How to compile bochs

Post by Da_Maestro »

Use gcc...problem solved!
Two things are infinite: The universe and human stupidity. But I'm not quite sure about the universe.
--- Albert Einstein
yaocong
Posts: 22
Joined: Fri Sep 09, 2005 11:00 pm
Location: China
Contact:

Re: How to compile bochs

Post by yaocong »

thanks,
But I want to use it on windows platform...
I like the Dream of the Red Chamber.
User avatar
carbonBased
Member
Member
Posts: 389
Joined: Sat Nov 20, 2004 12:00 am
Location: Wellesley, Ontario, Canada
Contact:

Re: How to compile bochs

Post by carbonBased »

Could always try using cygwin.

--Jeff
User avatar
xenos
Member
Member
Posts: 1144
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
GitHub: https://github.com/xenos1984
Contact:

Re: How to compile bochs

Post by xenos »

There is a file named .conf.win32-vcpp in the top bochs source dir which should make it possible to use VC++ (but I have never tested it because I use CygWin on Windows). To enable x86_64 and SMP support, you need to edit this file. The file contains numerous configure options and you need to add two more of them, namely:
  • --enable-x86-64
  • --enable-processors=n
Replace n with the number of processors bochs should simulate. After editing this file, follow these instructions: http://bochs.sourceforge.net/doc/docboo ... LING-WIN32
Post Reply