Skip to content

Instantly share code, notes, and snippets.

@qu1j0t3
Created October 13, 2012 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qu1j0t3/3885865 to your computer and use it in GitHub Desktop.
Save qu1j0t3/3885865 to your computer and use it in GitHub Desktop.
How to build simh on Windows with networking/threads

How to build simh on Windows with networking/threads

Obtain simh source code: https://github.com/simh/simh

(I used version 3.9.0)

Extract sources. Create a new folder as a sibling of the inner source folder, named "windows-build" (for more details of required folder layout, see https://github.com/simh/simh/blob/master/Visual%20Studio%20Projects/0ReadMe_Projects.txt)

Obtain WinPCap developer's pack: http://www.winpcap.org/devel.htm

(I used version 4.1.2)

Extract the distribution zip and move the folder WpdPack into a new folder "winpcap" in the "windows-build" folder.

Obtain Posix threads for Windows: ftp://sourceware.org/pub/pthreads-win32

(I used version 2.9.1 release ZIP)

Extract the ZIP. Locate the pthreads.2 folder, rename it to "pthreads", and move it into the "windows-build" folder.

Install Visual Studio Express IDE.

I used Visual C++ 2010 Express, via http://www.microsoft.com/visualstudio/eng/products/visual-studio-2010-express

Building

Open any of the architecture projects in the Visual Studio Projects folder.

  • Visual Studio will ask to convert the projects. You don't need to keep backup of the old project. This will take a few minutes.
  • Right click on "Solution 'Simh'" in Solution Explorer sidebar. Choose Configuration Manager.
  • Check the architectures you want to build and decide between Debug/Release.
  • Use one of the Build/Rebuild functions in the right-click menu or hit F7.
  • If the build succeeds, your binaries will be found in the simh source folder, \BIN\NT\Win32-Debug or Release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment