Difference between revisions of "Compiling KLH10"
(Compiling KLH10 on Gentoo x86_64) |
(No difference)
|
Revision as of 05:58, 26 February 2012
Introduction
This is a brief guide to compiling Ken Harrenstein's KLH10 PDP-10 emulator. It was written on an AMD64 Gentoo machine with 2GB RAM and gcc 4.5.3-r1. The author currently has a bad cold, so please excuse any mistakes/foolishness caused by dizziness.
Useful links: Viktor Björn's tutorial 'Some notes on setting up an ITS system'
This tutorial assumes that you are running a Linux system with a modern version of gcc. Some of these instructions will not apply to your system, or may differ. I am using a current Gentoo system, as of February 2012. The system has been configured as a 'multilib' configuration, with a mixture of 32- and 64-bit. By default, gcc compiles for 64-bit. (verify this)
Step 1: obtaining the KLH-10 source. There are two places that you can get the source, but I recommend using the Panda source, which you can download at [1]. As mentioned in Mr. Viktor's tutorial, if you are using gcc 4.x or later (I am!) you need to apply this patch. I needed to apply some additional patches of my own - see later.
Step 2: unpack the source - easy: 'tar -xzf panda-dist.tar.gz'
Step 3: compile the source. Here's where I got a headache and started pacing around the kitchen, drinking endless mugs of coffee and staring at the screen, uttering 'How? Why? How? HOW?'
(to be continued)
Lexthehex 20:58, 25 February 2012 (PST)