Check patentability & draft patents in minutes with Patsnap Eureka AI!

Stack control device and method

A technology of stack control and master control, which is applied in the direction of program control design, instrumentation, electrical digital data processing, etc., can solve problems such as program out of control and disappearance of return address, and achieve the effect of preventing performance degradation and reducing frequency of occurrence

Inactive Publication Date: 2006-11-01
OKI ELECTRIC IND CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In addition, in the micro information processor, when the program is executed and the capacity of the stack is exceeded, there will be a problem that the program is out of control due to the unexpected stop of the program or the disappearance of the return address of the subroutine.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Stack control device and method
  • Stack control device and method
  • Stack control device and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] Refer to the attached picture An embodiment of the stack control device according to the present invention will be described in detail. For example, as shown in FIG. 1, the stack control device 10 of the present invention stores data such as the return address of the subroutine into the stack register 16 when the main control unit 12 executes the program built in the ROM (Read-Only Memory) 14. , in order to make its data not exceed the capacity of the stack register 16, controlled by the interrupt controller 18, in the hardware (Hardware: H / W) stack 26 in the stack register 16 and the software (Software: Data is sent and received between S / W) stacks 28 . In addition, parts not directly related to the present invention are omitted picture to avoid lengthy descriptions.

[0057] In addition, the stack control device 10 of this embodiment is connected to the main control unit 12, ROM 14, stack register 16, interrupt controller 18, and RAM 20 through the control bus 22 f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Provided are a stack control device and method thereof used when a microcomputer or the like executes a program. The stack control device 10, when the interrupt controller 18 monitors the capacity of the H / W stack 26, and when it becomes the push and pop object capacity, push and pop interrupts occur respectively and the main control unit 12 is notified, and the main control unit 12 responds to the push interrupt , take out the data from the bottom of the H / W stack 26, push into the S / W stack 28, and repeat this operation as the push interrupt process according to the prescribed transfer number, respond to the pop-up interrupt, pop the data from the S / W stack 28 and store it in the H / At the bottom of the W stack 26, this operation is repeated as a pop-up interrupt process according to the specified return number, so that even if the program that may exceed the capacity of the stack register is executed, it can continue to execute without program stop and runaway phenomenon.

Description

technical field [0001] The present invention relates to a stack control device and its method used in the process of executing programs in a micro information processor or the like. Background technique [0002] Conventionally, in microcomputers, when the same program is executed many times, it is possible to execute an efficient program by using its processing part as a subroutine. After executing such a subroutine call instruction, the return address of the program to be processed after the subroutine is pushed into the stack, and then jump to the start address of the subroutine. After the processing of this subroutine is finished, execute the return instruction of the subroutine, extract the return address from the stack and jump to this address. [0003] In such a micro information processor, when executing program instructions, in order to push and pop to the stack at high speed, a stack register is set inside the hardware, and as the program is executed, the program c...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F7/00
CPCG06F9/3806G06F9/3861
Inventor 本田雄士
Owner OKI ELECTRIC IND CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More