Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

Wednesday, April 24, 2013

A Hello-World program in Unix V6 on the SIMH simulator

In my previous post I've talked about how to get Unix Version 6 to run in the SIMH PDP-11 simulator. Now that you have Unix V6 up and running, there is some nice hacking you can do. Here's the classic "Hello World" program in retro '70s style.

System setup

At this point you should have successfully started up and logged in as root into your Unix V6 system on the SIMH pdp11 simulator. For instructions on how to do that, read here. Once everything is correct, you should be greeted by the root prompt "#".

This where the times of ed

So in Unix V6 we're actually in a pre vi and emacs world. So the standard editor that was available at that time was ed (a so called line editor) which you will find even less intuitive to use than vim or emacs.

So here's how to write a Hello-World C program with ed and compile with cc:

Thursday, April 18, 2013

How to prepare for Programming Interviews - Part II

!!! Attention: this article (and in fact my whole blog) have moved to site:
http://thecsbox.com/2013/05/03/how-to-prepare-for-programming-interviews-part-ii/ !!!


I wrote a more general article about how to prepare for coding interviews here. This article talks about how you should work through each individual programming question. I recommend working with the book "Cracking the Coding Interview"


Related Articles:
How to prepare for Programming Interviews - Part I
Should I study Computer Science?
Unix in a Nutshell

Sunday, April 14, 2013

How to prepare for Programming Interviews - Part I

!!! Attention: this article (and in fact my whole blog) have moved to site:
http://thecsbox.com/2013/05/03/how-to-prepare-for-programming-interviews-part-i/ !!!


Are you a computer science student and currently worried about how best to prepare for your upcoming programming interview? Then hopefully this article where I'm sharing some of my experiences will help you. I have spent extensive time preparing for programming interviews recently and interviewed with Google, Facebook and Microsoft. In the end I decided to go to Facebook for this summer *yay* ;-)


Related Articles:
How to prepare for Programming Interviews - Part II
Should I study Computer Science?