摘要:
A test program generating apparatus for a compiler comprising: a conditional expression generating unit operable to receive a description of a control structure of a program and generate a plurality of conditional expressions to be inserted into insert parts of the conditional expressions of the control structure using a linear programming method, the plurality of conditional expressions allowing a control flow of the program to pass through all paths in the control structure; an initial value generating unit operable to generate initial values of variables, for each of all the paths, which are included in the plurality of conditional expressions for allowing the control flow of the program to pass through all the paths in the control structure; and a test program generating unit operable to generate a test program based on the control structure, the conditional expressions and the initial values.
摘要:
A numerical controller having a display function for comparing data at a predetermined position regardless of a change in a processing condition. The numerical controller comprises a numerical controlling part which controls each drive axis based on a predetermined position command; a position data obtaining part which obtains position data of each axis and a tool representative point of the machine tool; a movement distance calculating part which calculates movement distance of the axis and the tool representative point based on the obtained position data and dimensional information of each component of the machine tool; a physical data obtaining part which obtains physical data of each axis and the tool; a data converting part which converts the obtained time axis-based physical data into movement distance-based data; a distance-based data storing part which stores the movement distance-based data; and a displaying part which displays the movement distance-based data.
摘要:
A numerical controller, wherein an operator, even remotely, can recognize a sound of a machine tool or the like, and can intuitively know the effect in adjusting the parameter. The numerical controller includes a drive axis controlling part configured to control a drive axis; a drive axis data storing part configured to obtain a physical quantity of the drive axis as time-series data and store the time-series data; a displaying part configured to convert the time-series data into a predetermined indication form and display the data as at least one displayed waveform; a selecting part configured to select the displayed waveform by input operation of the operator; a sound converting part configured to convert the selected waveform into sound conversion data, a type of which is capable of being output as sound; and a sound outputting part configured to output the generated sound conversion data as sound.
摘要:
A numerical controller capable of visually and accurately analyzing a change of the tool trajectory before and after changing a processing condition, whereby a parameter of a drive axis can be properly adjusted. The numerical controller comprises a numeric controlling part which controls each drive axis based on a predetermined position command; a position data obtaining part which obtains position data of each drive axis controlled by the numerical controlling part; a tool coordinate calculating part which calculates a coordinate of a tool center point based on position feedback or obtained position data of each drive axis and information of a mechanical structure of a machine tool; a tool trajectory storing part which stores the calculated coordinate of the tool center point as a feedback trajectory; and a displaying part which displays the stored feedback trajectory on a display.
摘要:
When a branch instruction is decoded by the instruction decoders 409a˜409c, the upper 29 bits of the PC relative value included in the branch instruction are sent to the upper PC calculator 411 and the lower 3 bits are sent to the lower PC calculator 405. The lower PC calculator 405 adds the lower 3 bits of the PC relative value and the lower 3 bits of the present lower PC 404 and sends the result to the lower PC 404 as the updated lower PC. The upper PC calculator 411 adds the upper 29 bits of the PC relative value, the upper 29 bits of the present upper PC 403, and a carry that may be received from the lower PC calculator 405, and sends the result to the upper PC 403 as the updated upper PC.
摘要:
A compiler comprises an analysis unit that detects directives (options and pragmas) from a user to the compiler, an optimization unit that is made up of a processing unit (a global region allocation unit, a software pipelining unit, a loop unrolling unit, a “if” conversion unit, and a pair instruction generation unit) that performs individual optimization processing designated by options and pragmas from a user, following the directives and the like from the analysis unit, etc. The global region allocation unit performs optimization processing, following designation of the maximum data size of variables to be allocated to a global region, designation of variables to be allocated to the global region, and options and pragmas regarding designation of variables not to be allocated in the global region.
摘要:
A compiler 58, which is a compiler that realizes program development in a fewer man hours, translates a source program 72 written in a high-level language into a machine language program. This compiler 58 is comprised of: a directive obtainment unit that obtains a directive that a machine language program to be generated should be optimized; a parser unit 76 that parses the source program 72; an intermediate code conversion unit 78 that converts the source program 72 into intermediate codes based on a result of the parsing performed by the parser unit 76; an optimization unit 68 that optimizes the intermediate codes according to the directive; and a code generation unit 90 that converts the intermediate codes into the machine language program. The above directive is a directive to optimize the machine language program targeted at a processor that uses a cache memory.
摘要:
The present invention provides a processor which has a small-scale circuit and is capable of executing loop processing at a high speed while consuming a small amount of power. When the processor decodes an instruction “jloop C6,C1:C4,TAR,Ra”, the processor (i) sets a conditional flag C4 to 0 when the value of a register Ra is smaller than 0, (ii) moves the value of a conditional flag C2 to a conditional flag C1, moves the value of a conditional flag C3 to the conditional flag C2, and moves the value of the conditional flag C4 to the conditional flags C3 and C6, (iii) adds −1 to the register Ra and stores the result into the register Ra, and (iv) branches to an address specified by a branch register (TAR). When not filled with a branch target instruction, the jump buffer will be filled with a branch target instruction.
摘要:
A processor according to the present invention includes a decoding unit 20, an operation unit 40 and others. When the decoding unit 20 decodes Instruction vcchk, the operation unit 40 and the like judges whether vector condition flags VC0˜VC3 (110) of a condition flag register (CFR) 32 are all zero or not, and (i) sets condition flags C4 and C5 of the condition flag register (CFR) 32 to 1 and 0, respectively, when all of the vector condition flags VC0˜VC3 are zero, and (ii) sets the condition flags C4 and C5 to 0 and 1, respectively, when not all the vector condition flags are zero. Then, the vector condition flags VC0˜VC3 are stored in the condition flags C0˜C3.
摘要:
A processor according to the present invention includes a decoding unit 20, an operation unit 40 and others. When the decoding unit 20 decodes Instruction vcchk, the operation unit 40 and the like judges whether vector condition flags VC0˜VC3 (110) of a condition flag register (CFR) 32 are all zero or not, and (i) sets condition flags C4 and C5 of the condition flag register (CFR) 32 to 1 and 0, respectively, when all of the vector condition flags VC0˜VC3 are zero, and (ii) sets the condition flags C4 and C5 to 0 and 1, respectively, when not all the vector condition flags are zero. Then, the vector condition flags VC0˜VC3 are stored in the condition flags C0˜C3.