你怎么能告诉一个正常人关于第一个程序? [英] How can you tell a normal person about first program?

查看:46
本文介绍了你怎么能告诉一个正常人关于第一个程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你怎么能告诉一个普通人(比如你妈妈、奶奶、你弟弟)第一个程序是怎么写的?他们问了很多这个问题,我真的无法给出他们能理解的答案.

How can you tell a normal person (i.e. your mom, grand mom, your little brother) how was the first program was written? They ask this question a lot and I really can't give an answer they can understand.

推荐答案

这取决于你如何定义事物.第一台计算机主要是通过重新排列跳线来编程的.只是(一点点)之后才添加了内存来生产存储内存的计算机.这些程序的第一个程序是通过打开或关闭开关来为一个单词设置 0 或 1,然后(当它们都设置为正确的值时)切换另一个开关以将该单词推送"到内存中,并设置当前位置"计数器到下一个内存地址.

It depends on how you define things. The first computers were programmed largely by rearranging patch-cords. Only (a little) later was memory added to produce stored-memory computers. The first programs for these were written by turning switches on or off to set 0's or 1's for a word, then (when they were all set to the right values) toggling another switch to "push" that word into memory, and setting the "current location" counter to the next memory address.

在计算机有了内存后,同样的基本思想在相当长的一段时间内继续用于初始引导程序——例如,从前我为一个控制数据主机编写代码,它有一组开关可以在引导程序(尽管在这种情况下,它们位于称为PPU"的辅助计算机上).我还(再次,很久以前)通过在前面板开关上切换启动代码来启动一个相当奇怪的 DEC PDP-8 变体(即使那是几十年前,有问题的计算机当时已经过时了).

The same basic idea continued to be used for the initial boot program for quite a while after computers had memory -- e.g., once upon a time I wrote code for a Control Data mainframe that had a set of switches to toggle in the boot program (though in this case, they were on an auxiliary computer called a "PPU"). I also (again, long ago) booted a rather oddball variant of a DEC PDP-8 by toggling the boot code in on front-panel switches (and even though that was decades ago, the computer in question was already obsolete at the time).

这篇关于你怎么能告诉一个正常人关于第一个程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆