Abstract:
A program conversion device for converting a program source is provided. The program conversion device comprises: a section and index acquisition device for acquiring a section code for indicating a section embedded in the program and performance index information embedded in the program in association with the section code; a task code conversion device for separating the acquired section code into task codes and adding a code to indicate the beginning of the task and a code to indicate the end of the task; and a task index attachment device for attaching a performance index, to input to the scheduler, to the task.

Description:
BACKGROUND OF THE INVENTION  
       [0001]     1. Field of the Invention  
         [0002]     The present invention relates to a program conversion device and method for automatically converting a given program, and more particularly to a program conversion device and method which allow automatically converting a program so as to insure performance in a selected section.  
         [0003]     2. Description of the Related Art  
         [0004]     The major functions of an operating system are hardware management, task management, data management and input/output management. Task management in particular is for managing the execution sequence of tasks, and plays an important role to operate the CPU, memory and input/output devices efficiently.  
         [0005]     A task is a control unit for batch managing a flow of a program, such as startup, execution and end. A program which operates under the management of the operating system is handled as a task, and all the operations of the operating system related to the execution of a program are handled as tasks. In the case of describing a task as a program in prior art, it is necessary to explicitly describe the startup and the end of a task.  
         [0006]     In terms of parallel processing, a method for performing parallel execution by automatically detecting the processing units which can be executed in parallel automatically and separating it into tasks to perform parallel execution by analyzing the control structure of the program and the dependency relationship of the data is known (e.g. JP-A-6-250988).  
         [0007]     Or a method of performing parallel execution by designating a parallel compiler instruction statement for defining an area where parallel processing is possible, instead of designating task separation, so that this portion is automatically separated into tasks, is known (e.g. JP-A-2004-94581).  
         [0008]     In these conventional methods, task separation is explicitly described or task separation is performed by automatically detecting the parallel execution portion. An object of these methods is to improve the average processing performance by parallel execution.  
         [0009]     In the case of parallel execution in the media processing execution environment, it is more important to insure processing performance rather than to improve average processing performance. In this environment where various processings are executed simultaneously, it is difficult to set the relative priority of the processings.  
       SUMMARY OF THE INVENTION  
       [0010]     To solve the above problem, it is an object of the present invention to provide a program conversion device and method which can automatically separate a specified section of a program into a task by attaching a performance index to the section.  
         [0011]     To achieve the above object, a program conversion device for converting a program source according to the present invention comprises: a section and index acquisition device for acquiring a section code for indicating a section embedded in a program and performance index information embedded in the program in association with the section code; a task code conversion device for separating the acquired section code as a task code and adding a code to indicate the beginning of the task and a code to indicate the end of the task; and a task index attachment device for attaching a performance index, to input to the scheduler, to the task.  
         [0012]     According to the present invention, it is preferable that the task code conversion device adds a task start code as a code to indicate the beginning of the task, and attaches a task end code as a code to indicate the end of the task.  
         [0013]     According to the present invention, it is preferable that the task code conversion device adds a specific instruction of the processor as codes to indicate the beginning of the task and the end of the task.  
         [0014]     According to the present invention, it is preferable that the task code conversion device adds a task generation code and also adds to the task generation code a code to operate such that an error is output when the program cannot be started up for the task generation code according to the attached index.  
         [0015]     According to the present invention, it is preferable that the performance index information is a performance value to indicate the number of instructions that can be processed within a unit time.  
         [0016]     According to the present invention, it is preferable that the performance index information is a value to indicate a ratio to the maximum performance value that can be processed.  
         [0017]     According to the present invention, it is preferable that the task code conversion device detects whether a variable is reused or not at the boundary of a section code start point and at the boundary of a section code end point, and when the variable is reused, attaches a code to transfer the variable, from the code before starting the task to the separated task code, and to transfer the variable, from the code before ending the separated task code to the code after the task ends.  
         [0018]     According to the present invention, it is preferable that the section and index acquisition device acquires the performance index information along with a code to indicate a group, and the task code conversion device adds a task generation code for generating tasks in parallel when section codes, having a same section code to indicate a group, are detected, and it is judged that the section codes do not have a dependency relationship.  
         [0019]     A scheduler for controlling the execution sequence of programs according to the present invention, comprising: a task performance index input device for inputting a task performance index from a task when a task generation code is detected; a scheduling device for scheduling all tasks according to the task performance index; and a task switching device in which the time required for allocating the task performance index to the execution of processing is set as the processing time, and the execution is switched to another processing task when the processing time elapses.  
         [0020]     According to the present invention, it is preferable that the scheduling device starts or ends scheduling when the processor decodes a specific instruction.  
         [0021]     A program development tool according to the present invention comprises: a program acceptance device for accepting a program from the outside; a program display device for displaying an accepted program; a user information input device for receiving a section of the program displayed by the program display device and performance index information in association with this section, as input; and the above mentioned program conversion device for separating the program into tasks having performance index information based on the program accepted by the program acceptance device and a section of the program received by the user information input device and the performance index information in association with the section.  
         [0022]     An information processing device according to the present invention comprises: a program code including a program converted into tasks attached with the performance index by the above mentioned program conversion device; a memory for storing the above mentioned scheduler, and a processor for processing the program code and the scheduler.  
         [0023]     A program conversion method for converting a program source according to the present invention comprises: a section and index acquisition step for acquiring a section code for indicating a section embedded in the program, and performance index information embedded in the program in association with the section code; a task code conversion step for separating the acquired section code into task codes and adding a code to indicate the beginning of the task and a code to indicate the end of the task; and a task index attachment step for attaching a performance index, to input to the scheduler, to the task.  
         [0024]     A program conversion software for converting a program source according to the present invention executes: a section and index acquisition step for acquiring a section code for indicating a section embedded in the program and performance index information embedded in the program in association with the section code; a task code conversion step for separating the acquired section code into task codes and adding a code to indicate the beginning of the task and a code to indicate the end of the task; and a task index attachment step for attaching a performance index, to input to the scheduler, to the task.  
         [0025]     A storage medium according to the present invention is for recording the program conversion software.  
         [0026]     According to the present invention, the program operates as an independent task when specified section of the program is executed, and by allocating time based on the performance index of the task using the scheduler, performance in the specified section can be assured without affecting other processing. 
     
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0027]      FIG. 1  is a block diagram depicting the configuration of the first embodiment of the program conversion device according to the present invention;  
         [0028]      FIG. 2  shows an example of the program before being converted by the program conversion device in  FIG. 1 ;  
         [0029]      FIG. 3A - FIG. 3C  show an example of the program in the result of being converted by the task code conversion device in the program conversion device in  FIG. 1 ;  
         [0030]      FIG. 4  is a flow chart depicting the operation of the task code conversion device in the program conversion device in  FIG. 1 ;  
         [0031]      FIG. 5  is a flow chart depicting the operation of the task index attachment device in the program conversion device in  FIG. 1 ;  
         [0032]      FIG. 6  shows an example of the program in the result of being converted by the task index attachment device in the program conversion device in  FIG. 1 ;  
         [0033]      FIG. 7A  and  FIG. 7B  show an example of the program in the result of being converted by the task code conversion device according to the second embodiment in the program conversion device of the present invention;  
         [0034]      FIG. 8  is a flow chart depicting the operation of the task code conversion procedure according to the second embodiment in the program conversion device of the present invention;  
         [0035]      FIG. 9  shows another example of the program before being converted by the program conversion device in  FIG. 1 ;  
         [0036]      FIG. 10A - FIG. 10C  show an example of the program in the result of being converted by the task code conversion device according to the third embodiment of the program conversion device of the present invention;  
         [0037]      FIG. 11  is a flow chart depicting the operation of the task code conversion procedure according to the third embodiment of the program conversion device of the present invention;  
         [0038]      FIG. 12  is a block diagram depicting the configuration of the scheduler according to the fourth embodiment of the present invention;  
         [0039]      FIG. 13  is a block diagram depicting the configuration of the time slot storage section in the scheduler in  FIG. 12 ;  
         [0040]      FIG. 14  is a flow chart depicting the scheduling processing procedure in the scheduler in  FIG. 12 ;  
         [0041]      FIG. 15  is a flow chart depicting the task addition procedure in the scheduler in  FIG. 12 ;  
         [0042]      FIG. 16  is a block diagram depicting the configuration of the development tool based on the fifth embodiment of the present invention; and  
         [0043]      FIG. 17  is a block diagram depicting the configuration of the information processing device based on the sixth embodiment of the present invention. 
     
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS  
     First Embodiment  
       [0044]     The first embodiment of the program conversion device of the present invention will now be described with reference to the drawings.  
         [0045]      FIG. 1  is a block diagram depicting the first embodiment of the program conversion device of the present invention. This program conversion device  1  is comprised of a section and index acquisition device  11 , task code conversion device  12 , and task index attachment device  13 .  
         [0000]     1. Section and Index Acquisition Device  11   
         [0046]     A program written in C language as shown in  FIG. 2  will now be described as an example of the program source  2  to be input. The present invention however shall not specify language and syntax.  
         [0047]     The section and index acquisition device  11  performs lexical analysis of the program source which was input, detects a predetermined reserved word, then acquires the attached index value. Here it is assumed that “#pragma”, which indicates an indication line to the C language compiler, is used, and the reserved word is “_PERFORM”. If the program source in  FIG. 2  is input, the line “#pragma_PERFORM (numeric value)” is detected, and the numeric value “100” is acquired as the index value.  
         [0048]     Then the section from “{“to the corresponding”}” after the detection line is detected, and the code of this section is acquired as the performance assurance code.  
         [0000]     2. Task Code Conversion Device  12   
         [0049]     The task code conversion device  12  shown in  FIG. 1  converts the input program source  2  based on the information acquired by the section and index acquisition device  11 , and outputs the object program  3 .  
         [0050]     The program shown in  FIG. 3A  is assumed to be a program source before being converted by the task code conversion device  12 . Here the performance index value “100” and the performance assurance code  41  are acquired by the section and index acquisition device  11 .  
         [0051]      FIG. 3B  and  FIG. 3C  show the program source after being converted by the task code conversion device  12 . The steps of the conversion will be described with reference to the flow shown in  FIG. 4 .  
         [0052]     First an effective automatic variable is detected between code X and the performance assurance code  41  in  FIG. 3A , and in the same way, an effective automatic variable is detected between the performance assurance code  41  and code Y (step S 51 ). The effective range of these variables change when separated as tasks, so transfer is required between the function before separation and task function after separation.  
         [0053]     Then the “#pragma_PERFORM (numeric value)” line and the performance assurance code  41 , which the section and index acquisition device  11  in  FIG. 1  detected, are deleted from the input source in  FIG. 3A  (step S 52 ).  
         [0054]     In this deleted portion (between code X and code Y), the prepared task generation code  42  ( FIG. 3B ) is inserted (step S 53 ).  
         [0055]     Finally a new function is created as shown in  FIG. 3C . The function name  45  is assumed to be a unique one so as not to overlap. In this function, the performance code  41 , task start code  43  and task end code  44  are inserted (step S 54 ).  
         [0056]     In the case of the conversion example in  FIG. 3B , the task generation code  42  has the following configuration. It is assumed that the allocated time value described here is not the already acquired performance index value “100”, but is a value acquired by the task index attachment device  13 . For this, a constant label “_QTM_”, which is a tentative value, is described here.  
         [0057]     First the automatic variable detected in step S 51  is saved “from code X to the performance assurance code  41 ” ( 42   a ).  
         [0058]     Then the allocated time value (constant_QTM_) is added to the total of the time allocated at the moment (variable cur_time) ( 42   b ). If the result exceeds the maximum value (variable max_time) which is preset, error processing is performed, and task separation is not performed ( 42   c ). For the variable which may be shared by tasks, exclusion control processing is performed if necessary.  
         [0059]     If no error occurs, a task is generated. The attribute of the task is initialized ( 42   d ), and the allocated time value which is provided to the task as the attribute is set ( 42   e ).  
         [0060]     Then using this attribute, a task is generated by the “task_create” function ( 42   f ). The function name created in step S 53  is specified here.  
         [0061]     At this point the task has acquired the allocated time and started execution, so in the rest of the section the program waits until the generated task ends and joins by the “task_join” function ( 42   g )  
         [0062]     When the task ends and error processing completes, the allocated time value of the task is subtracted from the total of the allocated time ( 42   h ), and the automatic variable detected in step S 51  is returned “from performance assurance code  41  to code Y” ( 42   i ).  
         [0063]     The task start code  43  shown in  FIG. 3C  includes the return code  43   a  of the automatic variable “from code X to performance assurance code  41 ” detected in step S 51 , and the task end code  44  includes the return code  44   a  of the automatic variable “from performance assurance code  41  to code Y” detected in step S 51  and the “task_exit” function  44   b  which declares the end of the task.  
         [0000]     3. Task Index Attachment Device  13   
         [0064]     The task index attachment device  13  in  FIG. 1  calculates the allocated time of the task based on the acquired performance index value “100”, and defines the actual value in the label “_QTM_” which is set as above in the task code conversion device  12 .  
         [0065]     The allocated time is calculated based on the acquired performance index value. In this first embodiment, it is assumed that the performance index value is “a performance value to indicate the number of instructions that can be processed per second”.  
         [0066]     In the task index attachment device  13 , the actual allocated time is calculated from the performance index value according to the flow in  FIG. 5  (step S 71 ), and the program code  61  including the task index information and the declaration of the external reference variable as shown in  FIG. 6  is added to the program code converted by the task code conversion device  12  (step S 72 ).  
         [0067]     In the program code  61 , an actual value of the constant _QTM_, which is an allocated time value defined by the task index attachment device  13  in  FIG. 1 , is defined ( 61   a ). Since the performance index value is “a performance value to indicate the number of instructions that can be processed per second”, “performance index value÷processor frequency×maximum allocated time value” becomes the value of _QTM_ because this processor performs the processing of one instruction in one step.  
         [0068]     The processor frequency cpu_freq and the maximum allocated time value max_time are only declarations here ( 61   b ,  61   c ), and actual values must be preset when the entire program starts. The value of the total allocated time cur_time currently being held is also only a declaration ( 61   d ), and must be initialized in advance when the entire program is started.  
         [0069]     The performance index value may be a “value to indicate the ratio of performance to full performance”. In other words, if 30% performance is provided to the specified section, then a value of 0.3 or 30 is specified. In this case, the allocated time value is calculated by “performance index value (ratio)×maximum allocated time value”, and the processor frequency cpu_freq is unnecessary.  
         [0070]     According to the first embodiment, the program operates as an independent task when a specified section of the program is executed, so performance of the specified section can be assured without affecting other processing.  
       Second Embodiment  
       [0071]     Now the second embodiment of the program conversion device of the present invention will be described.  
         [0072]     The second embodiment has the same configuration as the first embodiment, where the task code conversion device  12  is replaced with another configuration.  
         [0000]     1. Section and Index Acquisition Device  11   
         [0073]     In the second embodiment, the section and index acquisition device  11  has the same configuration as that of the first embodiment, therefore a detailed description thereof is omitted.  
         [0000]     2. Task Code Conversion Device  12   
         [0074]     The task code conversion device  12  converts the input program source  2  shown in  FIG. 1  based on the information acquired by the section and index acquisition device  11 , and outputs the program.  
         [0075]      FIG. 7A  shows the program source before being converted by the task code conversion device  12 . The performance index value “100” and the performance assurance code  81  are acquired by the section and index acquisition deice  11 .  
         [0076]      FIG. 7B  shows the program source after being converted by the task code conversion device  12 . The conversion steps will be described with reference to the flow in  FIG. 8 .  
         [0077]     First the “pragma_PERFORM (numeric value)” line detected by the section and index acquisition device  11  is deleted from the input source (step S 91 ).  
         [0078]     Then the syscall instruction is inserted before and after the detected performance assurance code  81  (step S 92 ). The syscall instruction handled here calls up the scheduler function, and an actual function is processed in the scheduler. The actual function contents will be described in the later mentioned section on the scheduler.  
         [0079]     The definition label_QTM_, which indicates the performance index value, is provided to the syscall instruction  82  to be inserted before the performance assurance code  81  as an argument (operand), and −1, which does not indicate any performance index value, that is which indicates the end of the section, is provided to the syscall instruction  83  to be inserted after the performance assurance code  81  as an argument (operand). Here there is a required condition that the performance index value does not use the value −1.  
         [0000]     3. Task Index Attachment Device  13   
         [0080]     In the second embodiment, the task index attachment device  13  has the same configuration as that of the first embodiment, therefore a detailed description thereof is omitted.  
         [0081]     According to the second embodiment, only the insertion of a specific processor instruction to the program to be applied is required, and the codes related to the generation and the ending of the task can be completely separated from the program, so a program can be created without depending on the functions and format of the operating system.  
       Third Embodiment  
       [0082]     The program conversion device of the third embodiment will now be described.  
         [0083]     The third embodiment as well has the same configuration as the first embodiment, just like the case of the second embodiment. Here the section and index acquisition device  11  and the task code conversion device  12  are expanded so as to convert the program into a plurality of tasks which operate in parallel.  
         [0000]     1. Section and Index Acquisition Device  11   
         [0084]     Here a program described in C language, as shown in  FIG. 9 , will be described as an example of the program source  2  to be input ( FIG. 1 ).  
         [0085]     The section and index acquisition device  11  performs the lexical analysis of the program source which were input, and acquires an attached performance index value after detecting a predetermined reserved word.  
         [0086]     If the program source shown in  FIG. 9  is input, the line “pragma_PERFORM (numeric value, symbol)” is detected, the section from “{” to the corresponding “}” after the detected line is detected, and the performance index value and code of this section are acquired as the performance assurance code. If “#pragma_PERFORM (numeric value, symbol)” is still active and the symbol is the same, the performance index value and the performance assurance code are sequentially acquired.  
         [0087]     However no code should be included between these performance assurance codes, that is between the end symbol “}” and the next “#pragma_PERFORM (numeric value, symbol)”. Because according to the third embodiment, the parallel execution of two or more codes must be assured, and if a code is inserted between, a time based sequential relationship is generated.  
         [0088]     Only one performance assurance code, of which performance index value is 0, may be included. This is executed in parallel with other codes as a code which does not assure performance.  
         [0000]     2. Task Code Conversion Device  12   
         [0089]     The task code conversion device  12  converts the input program source  2  and outputs the object program  3  based on the information acquired by the section and index acquisition device  11 .  
         [0090]     It is assumed that the program shown in  FIG. 10A  is a program source before being converted by the task code conversion device  12 . By the section and index acquisition device  11 , the performance index value “100” and the performance assurance code (A) indicated by the reference number  101 , the performance index value “200” and performance assurance code (B) indicated by the reference number  102 , and the performance index value “0” and the normal code (C) indicated by the reference number  103  have been acquired.  
         [0091]      FIG. 10B  and  FIG. 10C  show the program source after being converted by the task code conversion device  12 . The conversion steps will be described with reference to the flow in  FIG. 11 .  
         [0092]     The automatic variable detection in the first embodiment is not performed here. This is because when a plurality of codes operate in parallel, the automatic variable cannot be returned to the original value after being distributed to each code and executed. Therefore in this case, it is assumed that the normal code can be used as an automatic variable.  
         [0093]     In  FIG. 11 , the “#pragma_PERFORM (numeric value, symbol)” line and the performance assurance code  101  detected by the section and index acquisition device  11  are deleted from the input source in  FIG. 10A  (step S 111 ). By repeating this for the number of detected lines, the performance assurance code (B)  102  and the normal code  103  are also deleted respectively.  
         [0094]     In this deleted portion (between code X and code Y), a prepared task generation code  104  is inserted (step S 112 ).  
         [0095]     Finally a new function is created for the number of detected lines, as shown in  FIG. 10C . The function, however, is not created for a normal code. The function name  106  is assumed to be unique so as not to overlap. In this function, the performance assurance code  101  or  102  and the task end code  105  are inserted (step S 113 ).  
         [0096]     In the case of the conversion example in  FIG. 10B , the task startup code  104  has the following configuration. For the allocated time value described here, the constant labels “_QTMA_” and “_QTMB_” are described respectively corresponding to the performance assurance codes (A) and (B).  
         [0097]     First processing to add the sum of the allocated time values (_QTMA_+_QTMB_) to the total (variable cur_time) of the currently allocated time is performed ( 104   a ). If the result exceeds the maximum value (variable max_time) which is preset, error processing is performed, and the task separation is not performed ( 104   b ). For the variable which may be shared by tasks, exclusion control processing is performed if necessary.  
         [0098]     If no error occurs, a task is generated. The attribute of the task is initialized ( 104   c ), and the allocated time value which is provided to the task as the attribute is set ( 104   d ).  
         [0099]     Then using this attribute, a task is generated by the “task_create” function ( 104   e ). The function name created in step S 113  is specified here.  
         [0100]     Then for the setting of the allocated time value and generation of the task, lines are added for the number of detected lines ( 104   f ).  
         [0101]     The task has secured the allocated time and started execution at this point, and normal code  103  is executed if any, in the rest of this section ( 104   g ). When the code ends, the program waits until all the generated tasks end and join by the “task_join” function ( 104   h ). There is no need for the program to wait this function if all the tasks have already ended.  
         [0102]     When the tasks end and error processing completes, the allocated time value of all the tasks is subtracted from the total of the allocated time ( 104   i ).  
         [0103]     The task end code  105  includes the “task_exist” function to declare the end of a task.  
         [0104]     By this configuration, a plurality of tasks holding the allocated time value can be executed in parallel.  
         [0000]     3. Task Index Attachment Device  13   
         [0105]     In the third embodiment, the task index attachment device  13  has the same configuration as that of the first embodiment, so detailed description is omitted.  
         [0106]     According to the third embodiment, continuous section specifications and corresponding performance index information can be converted into a plurality of tasks which operate in parallel by a series of processings.  
       Fourth Embodiment  
       [0107]     The scheduler according to the fourth embodiment of the present invention will be described.  
         [0108]      FIG. 12  is a block diagram depicting the program execution device including the scheduler according to the present invention and peripheral devices thereof. This program execution device comprises a time scheduling section, that is scheduler X 10 , a program storage section X 20 , a time control section X 30 , and an execution control section X 40 . Now the scheduler X 10  will be described.  
         [0109]     The time scheduling section, that is the scheduler X 10  comprises a task acceptance section X 11 , time slot storage section X 12 , time slot switching section X 13 , and task selection section X 14 .  
         [0110]     The time slot is the time to execute the program by CPU, which is delimited at a predetermined time. By connecting the time slot and a task, the task can be executed only during this time.  
         [0000]     1. Task Acceptance Section X 11   
         [0111]     The task acceptance section X 11  accepts a task generated according to an instruction from a user program, and outputs this task to the time slot storage section X 12  so as to become an object of scheduling. The information which is output to the time slot storage section X 12  is the task information and the allocated time which are read from the program storage section X 20 .  
         [0112]     The task information includes the program start address and the stack pointer. The program start address is the first address of the area where a task is written. The stack pointer is a position information for temporarily recording the status of the task when task switching occurs.  
         [0113]     The allocated time is a value which is set as the allocated time of the time slot corresponding to the task when the task is accepted, and a value when the performance index information is converted by the program conversion device of the first, second or third embodiment is set. The task acceptance section X 11  internally has an area X 15  for holding the cycle value, and can hold this cycle value when a cycle is input.  
         [0000]     2. Time Slot Storage Section X 12   
         [0114]     The time slot storage section X 12  is for managing the time slot information X 100 , X 110 , . . . as shown in  FIG. 13 .  
         [0115]     The time slot information X 100  includes information on the time slot, and includes specifically the allocated time X 100   a,  flag X 100   b  and task management information X 100   c.    
         [0116]     The allocated time X 100   a  is set at the same time with the generation of a time slot, and indicates the time for the task corresponding to this time slot to execute, and if this time elapses, processing to switch to the next time slot is performed.  
         [0117]     The execution flag X 100   b  is a binary integer to indicate whether this time slot is effective.  
         [0118]     The task management information X 100   c  holds the management information to manage the task, and one task information block indicates one task. This task management information X 100   c  includes the program start address and the stack pointer, and when a task is generated, the task information, which is input by the task acceptance section X 11 , is held. When the task is switched, the execution address of the interrupted task and the stack pointer at this point are held.  
         [0119]     The time slot information X 110  and X 120  also include the allocated times X 110   a  and  120   a,  the execution flags X 110   b  and X 120   b,  and the task management information X 110   c  and X 120   c  respectively.  
         [0000]     3. Time Slot Switching Section X 13   
         [0120]     When the execution time of the task connected to the time slot exceeds the allocated time, the time slot switching section X 13  switches the time slots. Whether the allocated time has elapsed or not is notified by the timer control section X 30 , and the time slot to be used next is selected based on this information. In the fourth embodiment, it is assumed that the time slot information is arrayed in the sequence of the time slot information X 100 , time slot information X 110 , . . . Therefore the time slot to be selected next is determined by the sequence of the array, and the allocated time is acquired from the determined time slot information, and is set in the time control section X 30 .  
         [0000]     4. Task Selection Section X 14   
         [0121]     The task selection section X 14  saves the information on the currently executing task to the time slot storage section X 12  when the time slot switching section X 13  is switching or according to an instruction from the currently executing program, fetches the information on the task to be executed next from the task storage section X 12 , and outputs it to the execution control section X 40 .  
         [0000]     &lt;Details on Processing&gt; 
         [0122]     Now the details of the processing in the scheduler of the fourth embodiment will be described in the sequence of scheduling processing, task addition processing and task end processing.  
         [0000]     1. Scheduling Processing  
         [0123]     The scheduling processing will be described with reference to the flow chart in  FIG. 14 . When the time being set elapses, a signal is sent from the time control section X 30  to the time slot switching section X 13 , and scheduling processing starts.  
         [0124]     First the status of the currently executing task is stored in the task management block (step S 1401 ).  
         [0125]     Then the time slot switching processing is performed. The element next to the currently selected element in the time slot information array is assumed to be the time slot information to be selected next. If there is no next element, the first element of the time slot information array is selected. The allocated time included in the selected time slot information is fetched and is output to the time control section X 30 . After this allocated time elapses from this point, a signal is sent again from the time control section X 30  (step S 1402 ).  
         [0126]     The time slot has a mechanism to receive a notice, and if the notice is not received (step S 1403 ), the pointer to the task management block included in the selected time slot information indicates the task to be executed next. If the execution flag held by the time slot is invalid (step S 1404 ), this means that there is no task to be executed in this time slot, so the time slot is switched to the next time slot, and the same processing is executed until a valid time slot is found (step S 1405 ).  
         [0127]     If a valid time slot is not found, the processor shifts to power save status since there is no task to be executed (step S 1410 ).  
         [0128]     If there is a valid time slot (step S 1404 ), the status of the time being interrupted, out of the tasks corresponding to this time slot, is returned, and execution is restarted (steps S 1406  and S 1411 ).  
         [0129]     As described above, the time slot has a mechanism to receive a notice, and if a notice is sent to this time slot (step S 1403 ), the task connected to the pointer of the time slot information is acquired (step S 1407 ).  
         [0130]     If the acquired task exists and can be executed (step S 1408 ), execution is switched to this task, and execution of the task is restarted (steps S 1409 , S 1411 ). If the acquired task is invalid, the time slot is switched to the next time slot (step S 1402 ). By this series of processings, appropriate scheduling can be performed.  
         [0000]     2. Task Addition Processing  
         [0131]     The task addition processing will be described with reference to the flow chart in  FIG. 15 .  
         [0132]     The task addition request is generated either by the task addition function “task_create” or by the syscall instruction. Receiving this request, the allocated time of the task to be added is acquired from the task acceptance section X 11  (step S 1501 ).  
         [0133]     Then whether adding the time slot is possible is checked. The cycle value which is input in the area X 15  in advance has been held in the task acceptance section X 11 , and if the total of all the time slots is acquired from the time slot storage section X 12  and the value when the allocated time value is added to this total value does not exceed the cycle value, then this is judged that adding the time slot corresponding to this task is possible (step S 1502 ). If this cycle value is exceeded, an error is returned for the addition request (step S 1503 ), and processing ends.  
         [0134]     If this is judged that adding the time slot is possible in the step S 1502 , the time slot information is generated and the allocated time is set (step S 1504 ).  
         [0135]     The management block of the task to be executed on this time slot is also generated, and the task information is set (step S 1505 ).  
         [0136]     When the time slot information and the task management block are generated, the storage position of the time management block is set at the pointer of the time slot information to indicate the correspondence (step S 1506 ).  
         [0137]     Finally the execution flag of this time slot is enabled (step S 1507 ).  
         [0138]     By this series of processings, the task of which addition is requested can be added to an appropriate position according to the type.  
         [0000]     3. Task End Processing  
         [0139]     The task end processing is generated by the task end function “task_exit” or by the syscall instruction.  
         [0140]     The task end processing only disables the execution flag included in the time slot information of this task, so that this task does not become a switching object of the time slot switching section X 13 .  
         [0141]     According to the fourth embodiment, the time, according to the performance index, is allocated to the section code which has the performance index, and execution can be assured.  
       Fifth Embodiment  
       [0142]     Now the development tool based on the fifth embodiment of the present invention will be described.  
         [0143]      FIG. 16  is a diagram depicting the integrated environment using the above mentioned program conversion device. The integrated environment  1601  is comprised of the program acceptance section  1611 , user information input section  1612 , program display section  1613 , program conversion device  1614 , compile device  1615  and library  1616 .  
         [0144]     The program acceptance section  1611  accepts the input of the program source  1602  or directly accepts the input of the program using such an input device  1603  as a keyboard. The accepted program is displayed on the screen display device  1604  via the program display section  1613 .  
         [0145]     The user information input section  1612  accepts an operation to specify the range of a section of the program displayed on the screen display device  1604  using such an input device  1603  as a mouse. By this, the section of the program can be set. The user information input section  1612  also prompts the input of a value corresponding to the program section, and accepts the value which is input by the input device  1603 .  
         [0146]     The value and the program section accepted by the user information input section  1612  become the input of the program conversion device  1614 , and the program from the program acceptance section  1611  is separated into tasks having a performance index value. The converted program is translated into machine language by the compile device  1615 , joined with the library  1616 , and is output as the object program  1605 . The library  1616  may include the scheduler program.  
         [0147]     According to the fifth embodiment, it is unnecessary to directly write an instruction line in the program to instruct the section and information, and performance indication and the section can be specified by an intuitive operation.  
       Sixth Embodiment  
       [0148]     The information processing device based on the sixth embodiment will now be described.  
         [0149]      FIG. 17  shows the information processing device including the object program converted by the program conversion device and the scheduler.  
         [0150]     This information processing device  17  comprises the CPU  1701 , memory  1702 , I/O bridge  1703 , key input circuit  1704 , display circuit  1705 , voice input/output circuit  1706 , communication circuit  1707  and external storage device  1708 .  
         [0151]     The CPU  1701  and the memory  1702  are inter-connected via the CPU bus  1709   a . The key input circuit  1704 , the display circuit  1705 , the voice input/output circuit  1706 , the communication circuit  1707  and the external storage device  1708  are inter-connected via the system bus  1709   b . The CPU bus  1709   a  and the system bus  1709   b  are interconnected via the I/O bridge  1703 .  
         [0152]     The CPU  1701  reads the program from the memory  1702 , and decodes and executes it. If necessary, the CPU  1701  further reads data from the memory  1702 , and writes the execution result to the memory  1702 .  
         [0153]     In the sixth embodiment, the object program converted by the program conversion device and the scheduler are recorded in the memory  1702 , and these are executed by the CPU  1701 .  
         [0154]     By executing this object program and scheduler, the pre-specified section is executed according to the performance index.  
         [0155]     If the image display processing, voice output processing and communication processing are included in this object program, these processings can be executed in real-time without affecting one another since each processing is executed according to the allocated time indicated by the performance index.