水疱疹什么药最快能治好| 八月十二是什么星座| 女人脸黄是什么原因该怎么调理| 三五行属什么| 肾宝片有什么副作用吗| 可喜可贺是什么意思| 什么油最好| 感冒适合吃什么饭菜| 打封闭针有什么坏处| 口若什么| 心烦意乱焦躁不安吃什么药| 迷离的眼神什么意思| 一物降一物前面一句是什么| 宫颈粘连什么症状| 用什么方法可以戒酒| 鼻窦炎吃什么药效果好| 甲沟炎看什么科| 肉桂是什么味道| 豚鼠吃什么食物| 氯雷他定片主治什么病| 巫师是什么意思| 胃疼吃什么药最管用| 荷叶茶有什么作用| 6月19号是什么星座| 阴道真菌感染用什么药| 单核细胞偏高说明什么| 半元音是什么意思| 顾影自怜是什么意思| 吃什么能立马催月经| 梦见走亲戚是什么意思| roa胎位是什么意思| 蛋白质变性的本质是什么| 校长是什么级别| 自闭症是什么病| 男人喝什么茶壮阳| 江西有什么景点| 什么也什么造句| 青葱岁月下一句是什么| 不修边幅是什么意思| 梦见狗咬自己是什么意思| 婴儿大便有泡沫是什么原因| 处男什么意思| 星星是什么的眼睛| 拔牙后吃什么食物最好| 梦见床代表什么预兆| 高同型半胱氨酸血症是什么病| 炖汤用什么锅比较好| 透明的剑是什么剑| 千金是什么生肖| 备孕吃什么水果| 月经期可以吃什么水果| 不现实什么意思| 脑梗吃什么药效果好| 风热感冒是什么意思| 去威海玩需要准备什么| 无锡机场叫什么名字| 红红的苹果像什么句子| 达人是什么意思| 伏是什么意思| 梦见抓蝎子是什么意思| 35岁属相是什么生肖| 儿童腮腺炎挂什么科| 月全食是什么意思| 头皮屑多是什么原因引起的| 嗜酸性肉芽肿是什么病| 心衰吃什么药好| 麦冬有什么作用| 水泡型脚气用什么药| 颜艺是什么意思| 卧推60公斤什么水平| 什么程度才需要做胃镜| 一什么野花| 室内传导延迟什么意思| 肝穿刺检查是什么意思| 来大姨妈量少是什么原因| 老放屁是什么病的征兆| 女性分泌物增多发黄是什么原因| 子宫内膜息肉有什么症状| 口苦吃什么好得快| 五月21号是什么星座| 讳疾忌医是什么意思| 多吃香蕉有什么好处和坏处| 为什么打喷嚏会漏尿| 额头上长痘是什么原因| 大姨父是什么意思| 黄茶适合什么人喝| 总蛋白偏低是什么意思| 梦见给别人剪头发是什么意思| 什么风云| 锅包肉用什么淀粉| 脑梗有什么症状前兆| crp高是什么感染| 什么是鬼压床| 抑郁症吃的药叫什么| 预祝是什么意思| 小粉红什么意思| 温州特产是什么| p0s是什么意思| 什么地赞叹| 开封有什么好玩的地方| 小孩口腔溃疡是什么原因| 婊子是什么| 钺读什么| aimer是什么意思| 西洋参吃了有什么好处| 尿液突然变深褐色是什么原因| 最好的假牙是什么材质| 瑜伽是什么运动| brown什么意思| 手指脱皮是什么原因引起的| 谷氨酰转肽酶高是什么原因| 什么原因会导致尿路感染| 看血管挂什么科| 为什么会得淋巴肿瘤| 捋一捋是什么意思| 老生气会得什么病| 李子什么季节成熟| csf是什么意思| 属龙的守护神是什么菩萨| 远视储备是什么意思| 焦虑症什么症状| 驿站是什么意思| 无情是什么意思| 氢化聚异丁烯是什么| ct与核磁共振有什么区别| 牙酸是什么原因| 人体由什么组成| ca125检查是什么意思| 生性多疑是什么意思| 60min是什么意思| 湿气太重吃什么药| 巧妙是什么意思| 补血最快的方法是什么| 肋膈角锐利是什么意思| 硬度不够吃什么药| 这叫什么| 轻描淡写是什么意思| 女士内裤用什么洗最好| 甲醛中毒吃什么药解毒| 就绪是什么意思| 睾丸突然疼痛什么原因| 谷胱甘肽是什么| 雄激素是什么意思| 孩子吃什么容易长高| 查幽门螺旋杆菌挂什么科| 榴莲为什么那么臭| 鱼日羽念什么| 逝者已矣生者如斯是什么意思| 做梦梦见下大雨是什么意思| 这叫什么| 肺部有阴影一般是什么病| 牛的五行属什么| 指疣是什么病| 胸部dr是什么| 五行缺水是什么意思| 莲子心有什么作用| 男人喝藏红花有什么好处| 跳空缺口是什么意思| 映景是什么意思| 蜱虫长什么样| 子宫内膜增厚是什么意思| 六月二号什么星座| 庞统为什么叫凤雏| 减肥去医院挂什么科| 红薯什么时候掐尖| 吃完饭胃疼是什么原因| 苟不教的苟是什么意思| 黑上衣配什么颜色裤子男| 早上的太阳叫什么| 四大名著是什么| 荨麻疹是什么原因引起| 中午12点是什么时辰| 杨玉环属什么生肖| 827是什么意思| 什么不什么什么| 饮食清淡的标准是什么| 喝什么水对身体好| 双向情感障碍是什么意思| 吞拿鱼是什么鱼| 戒手淫有什么好处| 云南的特产是什么| vte是什么意思| 心脏早搏挂什么科| 胆囊炎吃什么药| 两融是什么意思| ad是什么缩写| 什么是卧蚕| 黄面是什么面| 妈妈的表哥叫什么| 夏天受凉感冒吃什么药| 恺字五行属什么| 金银花有什么功效| 为什么人会衰老| 龙须菜是什么植物| 甲状腺需要做什么检查| 早上做什么运动最好| 氮泵是什么| 猴子捞月是什么生肖| 玫瑰花和什么一起泡水喝好| 左眼跳代表什么| 一月28号是什么星座| movefree是什么药| 什么动物没有方向感| 儿童牙疼吃什么药| 什么水果是发物| 氯化钠注射作用是什么| 孕酮低吃什么可以提高孕酮| 7月1号什么节| 吃靶向药不能吃什么| 嘴歪是什么病的前兆| 五脏六腑什么意思| 病毒性扁桃体炎吃什么药| hpv什么意思| 宝宝乳糖不耐受喝什么奶粉比较好| 嘴角烂了涂什么药| 耵聍是什么| 动物园里面有什么动物| 手突然抖动是什么原因| 腿抽筋缺什么| 原籍是什么意思| 胃热吃什么中成药| 2006年出生属什么| 膈应是什么意思| 游车河什么意思| 晚安好梦什么意思| 尿道刺痛什么原因| 老炮儿是什么意思啊| 金牛座前面是什么星座| dha是什么意思| 髻是什么意思| 青蛙属于什么类动物| 带状疱疹后遗神经痛用什么药| 这是什么牌子| 学位证书有什么用| 肺大泡有什么症状| 肾结石吃什么| 腰间盘突出挂什么科室| 做爱为什么舒服| 啤酒加什么好喝| 什么的遐想| 杨颖原名叫什么| 供血不足吃什么药好| 体检挂什么科| 什么照镜子里外不是人| ca是什么病| 缺氯有什么症状怎么补| 缺镁吃什么食物补充最快| c反应蛋白是查什么的| 恶露是什么颜色的| 水瓶座男生喜欢什么样的女生| 脸浮肿是什么病的前兆| 乙肝通过什么传播| 什么是龙骨| 胡萝卜和什么榨汁好喝| 紫玫瑰代表什么意思| c14阳性是什么意思| 很什么很什么| 月经来了一点就没了是什么原因| 门槛石有什么讲究| 玩得什么| 书五行属性是什么| 油菜是什么菜| 长期失眠吃什么药| 什么是小数| 百度Jump to content

新疆多举措补牢基层医疗卫生发展短板

From Wikipedia, the free encyclopedia
百度 当然,这需要一个较长期的磨合过程。

Front panel of an IBM 701 computer introduced in 1952. Lights in the middle display the contents of various registers. The instruction counter is at the lower left.

The program counter (PC),[1] commonly called the instruction pointer (IP) in Intel x86 and Itanium microprocessors, and sometimes called the instruction address register (IAR),[2][1] the instruction counter,[3] or just part of the instruction sequencer,[4] is a processor register that indicates where a computer is in its program sequence.[5][nb 1]

Usually, the PC is incremented after fetching an instruction, and holds the memory address of ("points to") the next instruction that would be executed.[6][nb 2]

Processors usually fetch instructions sequentially from memory, but control transfer instructions change the sequence by placing a new value in the PC. These include branches (sometimes called jumps), subroutine calls, and returns. A transfer that is conditional on the truth of some assertion lets the computer follow a different sequence under different conditions.

A branch provides that the next instruction is fetched from elsewhere in memory. A subroutine call not only branches but saves the preceding contents of the PC somewhere. A return retrieves the saved contents of the PC and places it back in the PC, resuming sequential execution with the instruction following the subroutine call.

Hardware implementation

[edit]

In a simple central processing unit (CPU), the PC is a digital counter (which is the origin of the term "program counter") that may be one of several hardware registers. The instruction cycle[8] begins with a fetch, in which the CPU places the value of the PC on the address bus to send it to the memory. The memory responds by sending the contents of that memory location on the data bus. (This is the stored-program computer model, in which a single memory space contains both executable instructions and ordinary data.[9]) Following the fetch, the CPU proceeds to execution, taking some action based on the memory contents that it obtained. At some point in this cycle, the PC will be modified so that the next instruction executed is a different one (typically, incremented so that the next instruction is the one starting at the memory address immediately following the last memory location of the current instruction).

Like other processor registers, the PC may be a bank of binary latches, each one representing one bit of the value of the PC.[10] The number of bits (the width of the PC) relates to the processor architecture. For instance, a “32-bit” CPU may use 32 bits to be able to address 232 units of memory. On some processors, the width of the program counter instead depends on the addressable memory; for example, some AVR microcontrollers have a PC which wraps around after 12 bits.[11]

If the PC is a binary counter, it may increment when a pulse is applied to its COUNT UP input, or the CPU may compute some other value and load it into the PC by a pulse to its LOAD input.[12]

To identify the current instruction, the PC may be combined with other registers that identify a segment or page. This approach permits a PC with fewer bits by assuming that most memory units of interest are within the current vicinity.

Consequences in machine architecture

[edit]

Use of a PC that normally increments assumes that what a computer does is execute a usually linear sequence of instructions. Such a PC is central to the von Neumann architecture. Thus programmers write a sequential control flow even for algorithms that do not have to be sequential. The resulting “von Neumann bottleneck” led to research into parallel computing,[13] including non-von Neumann or dataflow models that did not use a PC; for example, rather than specifying sequential steps, the high-level programmer might specify desired function and the low-level programmer might specify this using combinatory logic.

This research also led to ways to making conventional, PC-based, CPUs run faster, including:

  • Pipelining, in which different hardware in the CPU executes different phases of multiple instructions simultaneously.
  • The very long instruction word (VLIW) architecture, where a single instruction can achieve multiple effects.
  • Techniques to predict out-of-order execution and prepare subsequent instructions for execution outside the regular sequence.

Consequences in high-level programming

[edit]

Modern high-level programming languages still follow the sequential-execution model and, indeed, a common way of identifying programming errors is with a “procedure execution” in which the programmer's finger identifies the point of execution as a PC would. The high-level language is essentially the machine language of a virtual machine,[14] too complex to be built as hardware but instead emulated or interpreted by software.

However, new programming models transcend sequential-execution programming:

  • When writing a multi-threaded program, the programmer may write each thread as a sequence of instructions without specifying the timing of any instruction relative to instructions in other threads.
  • In event-driven programming, the programmer may write sequences of instructions to respond to events without specifying an overall sequence for the program.
  • In dataflow programming, the programmer may write each section of a computing pipeline without specifying the timing relative to other sections.

See also

[edit]

Notes

[edit]
  1. ^ For modern processors, the concept of "where it is in its sequence" is too simplistic, as instruction-level parallelism and out-of-order execution may occur.
  2. ^ In a processor where the incrementation precedes the fetch, the PC points to the current instruction being executed. In some processors, the PC points some distance beyond the current instruction; for instance, in the ARM7, the value of PC visible to the programmer points beyond the current instruction and beyond the delay slot.[7]

References

[edit]
  1. ^ a b Hayes, John P. (1978). Computer Architecture and Organization. McGraw-Hill. p. 245. ISBN 0-07-027363-4.
  2. ^ Mead, Carver; Conway, Lynn (1980). Introduction to VLSI Systems. Reading, USA: Addison-Wesley. ISBN 0-201-04358-0.
  3. ^ Principles of Operation, Type 701 and Associated Equipment (PDF). IBM. 1953.
  4. ^ Harry Katzan (1971), Computer Organization and the System/370, Van Nostrand Reinhold Company, New York, USA, LCCCN 72-153191
  5. ^ Bates, Martin (2011). "Microcontroller Operation". PIC Microcontrollers. Elsevier. pp. 27–44. doi:10.1016/b978-0-08-096911-4.10002-3. ISBN 978-0-08-096911-4. Program Counter (PC) is a register that keeps track of the program sequence, by storing the address of the instruction currently being executed. It is automatically loaded with zero when the chip is powered up or reset. As each instruction is executed, PC is incremented (increased by one) to point to the next instruction.
  6. ^ Silberschatz, Abraham; Gagne, Greg; Galvin, Peter B. (April 2018). Operating System Concepts. United States: Wiley. pp. 27, G-29. ISBN 978-1-119-32091-3.
  7. ^ "ARM Developer Suite, Assembler Guide. Version 1.2". ARM Limited. 2001. Retrieved 2025-08-05.
  8. ^ John L. Hennessy and David A. Patterson (1990), Computer Architecture: a quantitative approach, Morgan Kaufmann Publishers, Palo Alto, USA, ISBN 1-55860-069-8
  9. ^ B. Randall (1982), The Origins of Digital Computers, Springer-Verlag, Berlin, D
  10. ^ C. Gordon Bell and Allen Newell (1971), Computer Structures: Readings and Examples, McGraw-Hill Book Company, New York, USA
  11. ^ Arnold, Alfred (2020) [1996, 1989]. "E. Predefined Symbols". Macro Assembler AS – User's Manual. V1.42. Translated by Arnold, Alfred; Hilse, Stefan; Kanthak, Stephan; Sellke, Oliver; De Tomasi, Vittorio. p. Table E.3: Predefined Symbols – Part 3. Archived from the original on 2025-08-05. Retrieved 2025-08-05. 3.2.12. WRAPMODE […] AS will assume that the processor's program counter does not have the full length of 16 bits given by the architecture, but instead a length that is exactly sufficient to address the internal ROM. For example, in case of the AT90S8515, this means 12 bits, corresponding to 4 Kwords or 8 Kbytes. This assumption allows relative branches from the ROM's beginning to the end and vice versa which would result in an out-of-branch error when using strict arithmetics. Here, they work because the carry bits resulting from the target address computation are discarded. […] In case of the abovementioned AT90S8515, this option is even necessary because it is the only way to perform a direct jump through the complete address space […]
  12. ^ Walker, B. S. (1967). Introduction to Computer Engineering. London, UK: University of London Press. ISBN 0-340-06831-0.
  13. ^ F. B. Chambers, D. A. Duce and G. P. Jones (1984), Distributed Computing, Academic Press, Orlando, USA, ISBN 0-12-167350-2
  14. ^ Douglas Hofstadter (1980), G?del, Escher, Bach: an eternal golden braid, Penguin Books, Harmondsworth, UK, ISBN 0-14-005579-7
水火不容是什么意思 焉是什么意思 七月有什么节 牙龈肿痛发炎吃什么药 脉搏高是什么原因
什么是结缔组织病 做梦吃饺子是什么意思 嘴巴边上长痘痘是什么原因 不出汗的人是什么原因 才华横溢是什么生肖
属牛的守护神是什么菩萨 肾主骨是什么意思 西梅什么时候上市 梦见好多猫是什么意思 适合是什么意思
家里飞蛾多是什么原因 稽是什么意思 冠状沟溃疡是什么病 鸡为什么吃自己下的蛋 男生的隐私长什么样
泄气是什么意思hcv9jop1ns0r.cn 殇读什么1949doufunao.com ena是什么检查项目hcv9jop2ns4r.cn 梦见拔花生是什么预兆cl108k.com 表面抗体阳性什么意思hcv7jop9ns5r.cn
巨蟹座男和什么座最配对hcv9jop0ns4r.cn 拍肺部ct挂什么科hcv9jop7ns0r.cn 眼睛胀是什么原因hcv9jop7ns9r.cn 火山为什么会喷发0297y7.com 查血管堵塞做什么检查hcv9jop7ns3r.cn
送日子是什么意思hcv8jop1ns1r.cn 大理寺是什么机构hcv8jop0ns6r.cn 血糖30多有什么危险hcv9jop3ns5r.cn 15一16岁青少年腰疼是什么病hcv9jop1ns5r.cn 血压和血糖有什么关系hcv9jop7ns9r.cn
2月27号是什么星座creativexi.com 出马仙是什么意思hcv8jop3ns4r.cn 丙申五行属什么hcv7jop9ns7r.cn 西柚是什么意思96micro.com 什么病不能吃玉米hcv9jop8ns3r.cn
百度