房颤是什么病| 任达华是什么生肖| 精子为什么叫怂| 陛下的陛是什么意思| 什么是妈宝男| 不想要孩子用什么办法最好| 依稀是什么意思| 酸枣仁配什么治疗失眠| 类风湿是什么意思| 人咬人有什么危害| 尿检粘液丝高什么意思| 喝水多尿多是什么原因| 医生代表什么生肖| 医生为什么看瞳孔知道没救了| 什么病不能吃空心菜| 93年的属什么| 什么的铅笔| 排卵期什么时候| 为什么会得痔疮| 红眼鱼是什么鱼| 秋葵什么人不能吃| 什么是宫缩| ed是什么病| 吐血拉血是什么病的症状| 为什么前壁容易生男孩| 甲胄是什么意思| 破处是什么意思| 葛根在农村叫什么| 好好的什么意思| 马跟什么生肖最配| dtc什么意思| 贫血什么意思| 2岁什么都听懂但不说话| 头晕耳鸣是什么原因引起的| 脾虚吃什么水果| 报捕是什么意思| 骆驼趾是什么意思| 半月板损伤吃什么药| 89年的蛇是什么命| 麻辣拌里面都有什么菜| 口腔溃疡反反复复是什么原因| 壁挂式空调什么牌子好| 多囊卵巢综合症吃什么药| 寻常疣是什么| 中国最高学位是什么| 什么床不能睡觉| 红袖什么意思| 冰箱什么牌子的好| 拐枣泡酒有什么功效| 长脚气是什么原因引起的| 466是什么意思| 为什么会发生地震| 脑白质缺血性改变什么意思| 属猴和什么属相相克| 福尔马林是什么味道| 点读笔什么牌子好| 内裤上有黄色分泌物是什么原因| 束脚裤配什么鞋子| 结婚55周年是什么婚| 绿豆和什么食物相克| 喝普洱茶有什么功效| 本命年为什么不能结婚| 奥特曼有什么| 微信什么时候开始的| 小孩吃什么提高免疫力| 肺部真菌感染用什么药最好| 黑咖啡什么时候喝| 脚底抽筋是什么原因引起的| 更年期挂什么科| 老婆妹妹叫什么| 36岁属什么生肖| 阳历7月份是什么星座| 什么症状吃藿香清胃胶囊| 口渴是什么病的症状| 黑色素瘤是什么| 什么树木| app是什么缩写| 上嘴角有痣代表什么| 惊蛰吃什么| 台风什么时候来| 深圳市市长什么级别| 世界上什么动物牙齿最多| 阿斯巴甜是什么东西| 梦见买鸡蛋是什么意思周公解梦| 植物园有什么植物| 男性性功能减退吃什么药| 孔子的原名叫什么| 什么叫指标到校| 为什么不来大姨妈也没有怀孕| 女生爱出汗是什么原因| 刘字是什么偏旁| 丑时五行属什么| 老人家头晕是什么原因| 膝盖不舒服挂什么科| 盖是什么意思| 抗ccp抗体高说明什么| 打蛋器什么牌子好| 痛风什么引起的原因有哪些| 除皱针什么牌子效果最好| 黑色记号笔用什么能擦掉| 心肌缺血吃什么好| 什么人不能摆放大象| 早上八点半是什么时辰| 木菠萝什么时候成熟| 520是什么日子| 嘴唇下面长痘痘是什么原因| 昆字五行属什么| 佐匹克隆是什么药| 什么是乙肝病毒携带者| 无犯罪记录证明需要什么材料| 什么地点头| 临汾有什么大学| 豇豆是什么| atp是什么意思| 山药什么季节成熟| 扁肉是什么| 旖旎是什么意思| 怀孕两个月有什么症状| 神经外科主要看什么病| 髋关节积液是什么原因造成的| 免疫力差吃什么| 飞龙在天是什么生肖| 奕五行属什么| 大便偏黑是什么原因| 皮什么结构| 占有欲强什么意思| 18年是什么婚| 什么时机塞给医生红包| 浅表性胃炎吃什么中药| jj是什么意思| 早上不晨勃是什么原因| 早博是什么| 台湾什么时候收复| 狐臭和腋臭有什么区别| 5月8日是什么星座| 腿痛挂什么科| 肺癌积水意味什么结果| 慎什么意思| 孙权和孙策是什么关系| mlb是什么意思| 生僻字什么意思| 什么东西泡水喝降血压| 平添的近义词是什么| 症结是什么意思| 为什么会长瘤| 检查膀胱挂什么科| 嗓子痒控制不住咳嗽是什么原因| 炖鸡汤放什么调料| 检查头部应该挂什么科| 1999年出生的属什么| 什么护肤品| 蚊虫叮咬用什么药膏| 交替脉见于什么病| 车迟国的三个妖怪分别是什么| 前列腺钙化有什么症状| 国粹是什么| 玉子是什么| napoleon是什么酒| 河南为什么叫河南| 漂流需要带什么| 井是什么生肖| 丙火是什么意思| 一什么茶| 后羿代表什么生肖| 甲功五项查的是什么| 手机贴什么膜最好| 眼眶发青是什么原因| 女性更年期潮热出汗吃什么药| 什么地唱| 什么运动使人脸部年轻| 鸡柳是什么肉| 屋里有蝙蝠有什么预兆| 孩子咳嗽能吃什么水果| 支气管炎吃什么药好| 心大是什么意思| 苯扎氯铵是什么| 虬结什么意思| 黄鼠狼喜欢吃什么东西| 茯苓是什么植物| 小螳螂吃什么| 宝宝吃什么增强抵抗力| 坐骨神经痛什么症状| 医学影像技术是干什么的| 捞仔是什么意思| 透疹是什么意思| 放生鱼有什么好处| 白鸡蛋是什么鸡下的蛋| negative是什么意思| 花胶适合什么人吃| 男性阴虱用什么药最好| 糖耐是什么| 什么炎炎| 两个火念什么| 6月18号是什么日子| 小狗需要打什么疫苗| 白头翁是什么鸟| 盆腔积液是什么原因造成的| 梦见来月经是什么意思| 小孩为什么吃果糖二磷酸钠| r的平方是什么意思| 做梦梦到蛆是什么意思| 挑拨离间是什么意思| 男人有腰窝意味着什么| 打扰了是什么意思| 珠胎暗结是什么意思| 为什么小腿皮肤瘙痒| 知性是什么类型的女人| 附件囊肿吃什么药可以消除| 吃什么排便顺畅| a4纸可以折什么| 卤肉是什么肉| 坚壁清野什么意思| 紫苏是什么植物| 月蚀是什么意思| 两点一线是什么意思| 属狗和什么属相最配| 牛肉炒什么好吃| 百脚虫的出现意味什么| 三个女人一台戏什么意思| 银饰发黑是什么原因| 实性结节是什么意思| 反目成仇是什么意思| 贫血是什么| 自费是什么意思| 子宫内膜息肉吃什么药| 喉咙痛咽口水都痛吃什么药| 灵犀是什么意思| eob是什么意思| elephant什么意思| 检查肺部最好做什么检查| 牙龈肿痛什么原因| 儿童肠炎吃什么药| 海尔洗衣机e3是什么故障| 今天股市为什么大跌| nafion溶液是什么| otc代表什么| 仲夏夜是什么意思| 深情款款什么意思| 年抛是什么意思| 造纸术什么时候发明的| sam是什么意思| 吃什么降血脂最快最好| 母亲节要送什么礼物| 黄油可以用什么代替| 打破伤风针挂什么科| 怀孕后不能吃什么| 什么是邮箱地址应该怎么填写| 小孩什么时候会说话| 漉是什么意思| 结婚24年是什么婚| 汗斑用什么药| 一个女一个以念什么| 土豆吃多了有什么坏处| 心脏跳快吃什么药好| 源源不断是什么意思| 人均可支配收入是什么意思| 夏天喝绿茶有什么好处| 什么是光合作用| 走资派是什么意思| 转氨酶偏高吃什么药| 乙肝是什么病| 职业暴露是什么意思| 胎盘可以治什么病| 三月二十八号是什么星座| 百度Jump to content

途家:海外业务再上台阶 重点发力日本市场

From Wikipedia, the free encyclopedia
(Redirected from Software execution)
百度 一名欧盟官员表示,莱特希泽曾暗示在豁免某些国家方面将有一些标准,联合应对钢铁产能过剩是其中之一。

Execution in computer and software engineering is the process by which a computer or virtual machine interprets and acts on the instructions of a computer program. Each instruction of a program is a description of a particular action which must be carried out, in order for a specific problem to be solved. Execution involves repeatedly following a "fetch–decode–execute" cycle for each instruction done by the control unit. As the executing machine follows the instructions, specific effects are produced in accordance with the semantics of those instructions.

Programs for a computer may be executed in a batch process without human interaction or a user may type commands in an interactive session of an interpreter. In this case, the "commands" are simply program instructions, whose execution is chained together.

The term run is used almost synonymously. A related meaning of both "to run" and "to execute" refers to the specific action of a user starting (or launching or invoking) a program, as in "Please run the application."

Process

[edit]

Prior to execution, a program must first be written. This is generally done in source code, which is then compiled at compile time (and statically linked at link time) to produce an executable. This executable is then invoked, most often by an operating system, which loads the program into memory (load time), possibly performs dynamic linking, and then begins execution by moving control to the entry point of the program; all these steps depend on the Application Binary Interface of the operating system. At this point execution begins and the program enters run time. The program then runs until it ends, either in a normal termination or a crash.

Executable

[edit]

Executable code, an executable file, or an executable program, sometimes simply referred to as an executable or binary, is a list of instructions and data to cause a computer "to perform indicated tasks according to encoded instructions",[1] as opposed to a data file that must be interpreted (parsed) by a program to be meaningful.

The exact interpretation depends upon the use. "Instructions" is traditionally taken to mean machine code instructions for a physical CPU.[2] In some contexts, a file containing scripting instructions (such as bytecode) may also be considered executable.

Context of execution

[edit]

The context in which execution takes place is crucial. Very few programs execute on a bare machine. Programs usually contain implicit and explicit assumptions about resources available at the time of execution. Most programs execute within multitasking operating system and run-time libraries specific to the source language that provide crucial services not supplied directly by the computer itself. This supportive environment, for instance, usually decouples a program from direct manipulation of the computer peripherals, providing more general, abstract services instead.

Context switching

[edit]

In order for programs and interrupt handlers to work without interference and share the same hardware memory and access to the I/O system, in a multitasking operating system running on a digital system with a single CPU/MCU, it is required to have some sort of software and hardware facilities to keep track of an executing process's data (memory page addresses, registers etc.) and to save and recover them back to the state they were in before they were suspended. This is achieved by a context switching.[3]:?3.3?[4] The running programs are often assigned a Process Context IDentifiers (PCID).

In Linux-based operating systems, a set of data stored in registers is usually saved into a process descriptor in memory to implement switching of context.[3] PCIDs are also used.

Runtime

[edit]

Runtime, run time, or execution time is the final phase of a computer program's life cycle, in which the code is being executed on the computer's central processing unit (CPU) as machine code. In other words, "runtime" is the running phase of a program.

A runtime error is detected after or during the execution (running state) of a program, whereas a compile-time error is detected by the compiler before the program is ever executed. Type checking, register allocation, code generation, and code optimization are typically done at compile time, but may be done at runtime depending on the particular language and compiler. Many other runtime errors exist and are handled differently by different programming languages, such as division by zero errors, domain errors, array subscript out of bounds errors, arithmetic underflow errors, several types of underflow and overflow errors, and many other runtime errors generally considered as software bugs which may or may not be caught and handled by any particular computer language.

Implementation details

[edit]

When a program is to be executed, a loader first performs the necessary memory setup and links the program with any dynamically linked libraries it needs, and then the execution begins starting from the program's entry point. In some cases, a language or implementation will have these tasks done by the language runtime instead, though this is unusual in mainstream languages on common consumer operating systems.

Some program debugging can only be performed (or is more efficient or accurate when performed) at runtime. Logic errors and array bounds checking are examples. For this reason, some programming bugs are not discovered until the program is tested in a production environment with real data, despite sophisticated compile-time checking and pre-release testing. In this case, the end-user may encounter a "runtime error" message.

Application errors (exceptions)

[edit]

Exception handling is one language feature designed to handle runtime errors, providing a structured way to catch completely unexpected situations as well as predictable errors or unusual results without the amount of inline error checking required of languages without it. More recent advancements in runtime engines enable automated exception handling which provides "root-cause" debug information for every exception of interest and is implemented independent of the source code, by attaching a special software product to the runtime engine.

Runtime system

[edit]

A runtime system, also called runtime environment, primarily implements portions of an execution model.[clarification needed] This is not to be confused with the runtime lifecycle phase of a program, during which the runtime system is in operation. When treating the runtime system as distinct from the runtime environment (RTE), the first may be defined as a specific part of the application software (IDE) used for programming, a piece of software that provides the programmer a more convenient environment for running programs during their production (testing and similar), while the second (RTE) would be the very instance of an execution model being applied to the developed program which is itself then run in the aforementioned runtime system.

Most programming languages have some form of runtime system that provides an environment in which programs run. This environment may address a number of issues including the management of application memory, how the program accesses variables, mechanisms for passing parameters between procedures, interfacing with the operating system, and otherwise. The compiler makes assumptions depending on the specific runtime system to generate correct code. Typically the runtime system will have some responsibility for setting up and managing the stack and heap, and may include features such as garbage collection, threads or other dynamic features built into the language.[5]

Instruction cycle

[edit]

The instruction cycle (also known as the fetch–decode–execute cycle, or simply the fetch-execute cycle) is the cycle that the central processing unit (CPU) follows from boot-up until the computer has shut down in order to process instructions. It is composed of three main stages: the fetch stage, the decode stage, and the execute stage.

This is a simple diagram illustrating the individual stages of the fetch-decode-execute cycle.

In simpler CPUs, the instruction cycle is executed sequentially, each instruction being processed before the next one is started. In most modern CPUs, the instruction cycles are instead executed concurrently, and often in parallel, through an instruction pipeline: the next instruction starts being processed before the previous instruction has finished, which is possible because the cycle is broken up into separate steps.[6]

Interpreter

[edit]

A system that executes a program is called an interpreter of the program. Loosely speaking, an interpreter directly executes a program. This contrasts with a language translator that converts a program from one language to another before it is executed.

Virtual machine

[edit]

A virtual machine (VM) is the virtualization/emulation of a computer system. Virtual machines are based on computer architectures and provide functionality of a physical computer. Their implementations may involve specialized hardware, software, or a combination.

Virtual machines differ and are organized by their function, shown here:

Some virtual machine emulators, such as QEMU and video game console emulators, are designed to also emulate (or "virtually imitate") different system architectures thus allowing execution of software applications and operating systems written for another CPU or architecture. OS-level virtualization allows the resources of a computer to be partitioned via the kernel. The terms are not universally interchangeable.

See also

[edit]

References

[edit]
  1. ^ "executable". Merriam-Webster's Online Dictionary. Merriam-Webster. Retrieved 2025-08-06.
  2. ^ "Machine Instructions". GeeksforGeeks. 2025-08-06. Retrieved 2025-08-06.
  3. ^ a b Bovet, Daniel P. (2005). Understanding the Linux Kernel. Marco Cesati (3 ed.). Sevastopol, CA: O'Reilly. ISBN 0-596-00565-2. OCLC 64549743.
  4. ^ "Difference between Swapping and Context Switching". GeeksforGeeks. 2025-08-06. Retrieved 2025-08-06.
  5. ^ Aho, Alfred V.; Lam, Monica Sin-Ling; Sethi, Ravi; Ullman, Jeffrey David (2007). Compilers: Principles, Techniques and Tools (2nd ed.). Boston, MA, US: Pearson Education. p. 427. ISBN 978-0-321-48681-3.
  6. ^ Crystal Chen, Greg Novick and Kirk Shimano (2000). "Pipelining". Retrieved 2025-08-06.
艾灸是什么意思 铁观音适合什么季节喝 上火喝什么饮料 惊弓之鸟告诉我们什么道理 曹操字什么
扁桃体发炎是什么原因 呼吸重是什么原因 什么一什么什么成语 8月8号什么星座 生理期吃什么比较好
腔梗是什么 怀孕后吃避孕药有什么后果 利涉大川是什么意思 前胸后背疼是什么病 腰椎骨质增生是什么意思
盐酸舍曲林片治疗什么程度的抑郁 柿子叶有什么功效 四级警长是什么级别 后羿射日告诉我们什么道理 大米放什么不生虫子
福字挂在家里什么位置最合适hcv8jop1ns4r.cn sm是什么意思啊hcv9jop6ns8r.cn 18年是什么年hcv8jop5ns4r.cn 头皮发痒是什么原因引起的hcv8jop1ns0r.cn 胱抑素是什么imcecn.com
火命适合佩戴什么首饰hcv8jop9ns3r.cn 突然头晕眼花站不稳是什么原因hcv8jop2ns1r.cn 肝火旺盛吃什么药hcv8jop4ns0r.cn 芙蕖是什么花hcv8jop6ns1r.cn 八月有什么节日hcv9jop7ns0r.cn
世界之大无奇不有是什么意思hcv7jop6ns3r.cn 什么而去的四字词语hcv7jop9ns6r.cn 水浒传为什么叫水浒传hcv9jop0ns2r.cn 蜈蚣长什么样子hcv8jop4ns8r.cn 什么汤补气血效果最好hcv8jop4ns3r.cn
白葡萄酒配什么食物hcv9jop7ns9r.cn 脾虚湿气重吃什么药hcv8jop3ns2r.cn 芍药花什么时候开花hcv8jop5ns9r.cn 梦见下牙掉了是什么征兆hcv8jop9ns8r.cn 什么食物含维生素ahcv8jop1ns2r.cn
百度