What is claimed is:
1. A compiler for generating object code from an input source program, comprising:
a character string interpreter which divides instructions coded within an input source program into tokens;
a syntax analyzer which analyzes syntax of said tokens, and makes a judgment as to whether or not a definition of an intrinsics function and an instruction attribute information characterizing an instruction coded in intrinsics functions is included in a combination of said tokens;
an intrinsics function information database into which a definition of said intrinsics function and said instruction attribute information are stored as intrinsics function information; and
a code generator which develops an instruction that calls an intrinsics function within said source program by referring to said intrinsics function information, and which converts said developed source program either to machine language or to an intermediate code.
2. The compiler according to claim 1, wherein said syntax analyzer distinguishes a prescribed identifier that indicates an intrinsics function from among a function declaration part of said source program to judge as to whether or not said intrinsics function definition and said instruction attribute information is defined.
3. The compiler according to claim 1, wherein said intrinsics function definition includes a dummy argument type and identification name.
4. A compiler for generating object code from an input source code program, comprising:
a character string interpreter which divides instructions coded within an input source program into tokens;
a syntax analyzer, which analyzes syntax of said tokens;
an intrinsics function information database into which a definition of an intrinsics function and instruction attribute information characterizing an instruction coded by the intrinsics function are stored as intrinsics function information; and
a code generator which develops an instruction that calls an intrinsics function within said source program by referring to said intrinsics function information, and which converts said developed program either to machine language or to an intermediate code.
5. The compiler according to claim 4, wherein said syntax analyzer distinguishes a prescribed identifier indicating an intrinsics function from among a function declaration part coded within an external file, thereby making a judgment as to whether or not an intrinsics function definition and said instruction attribute information are defined.
6. The compiler according to claim 4, wherein said intrinsics function definition includes a dummy argument type and identification name.
7. A compiler for generating object code from an input source program, comprising:
a character string interpreter which divides instructions coded within an input source program into tokens;
a syntax analyzer which analyzes syntax of said tokens;
an intrinsics function information database into which a definition of an intrinsics function and instruction attribute information characterizing an instruction coded by the intrinsics function are stored as intrinsics function information; and
a code generator which develops an instruction that calls an intrinsics function within said source program by referring to said intrinsics function information, and which converts said expanded source program either to machine language or to intermediate code,
wherein said intrinsics function information includes a function declaration statement, to which is added a prescribed identifier indicating an intrinsics function, dummy argument information, and said instruction attribute information.
8. A method for compiling which generates object code from an input source program, comprising:
storing a definition of an intrinsics function into an intrinsics function information database;
storing instruction attribute information characterizing an instruction coded by an intrinsics function into said intrinsics function information database;
dividing instructions coded within an input source program into tokens;
analyzing the tokens and detecting from a combination of said tokens a declaration of a start of coding with regard to said intrinsics function; and
developing an instruction that calls an intrinsics function within said source program by referring to said intrinsics function information database, and converting said developed source program either to machine language or to intermediate code.
9. A method for compiling, which generates object code from an input source program, comprising:
dividing instructions coded within an input source program into tokens;
analyzing said tokens and detecting from a combination of said tokens a declaration of a start of coding with regard to said intrinsics function;
accessing an intrinsics function information database, into which are stored a definition of an intrinsics function and instruction attribute information characterizing an instruction coded by said intrinsics function;
developing an instruction that calls an intrinsics function within said source program; and
converting said developed source program either to machine language or to intermediate code.
10. The method for compiling according to claim 8, wherein said detecting of said declaration is performed by distinguishing a prescribed identifier indicating an intrinsics function from among a function declaration part of said source program, thereby making a judgment as to whether or not said intrinsics function definition and said instruction attribute information are defined.
11. The method for compiling according to claim 9, wherein said detecting of said declaration is performed by distinguishing a prescribed identifier indicating an intrinsics function from among a function declaration part of said source program, thereby making a judgment as to whether or not said intrinsics function definition and said instruction attribute information are defined.
12. A computer-readable recording medium onto which is stored a program causing a computer to execute compiling processing that generates object code from an input source program, said program comprising:
processing for character string interpretation, so as to divide instructions coded within an input source program into tokens;
processing for analyzing said tokens and for analyzing a syntax thereof to judge whether or not a combination of said tokens has a definition of an intrinsics function and instruction attribute information characterizing an instruction coded by said intrinsics function;
processing for storing a definition of said intrinsics function and said instruction attribute information as intrinsics function information;
processing for developing an instruction that calls said intrinsics function within said source program by referring to said intrinsics function information; and
generating code that converts said expanded source program either to machine language or to intermediate code.
13. The recording medium according to claim 12, wherein said syntax analysis processing distinguishes a prescribed identifier indicating an intrinsics function from among a function declaration part of said source program, thereby making a judgment as to whether or not said intrinsics function definition and said instruction attribute information are defined.
14. A computer-readable recording medium onto which is stored a program causing a computer to execute compiling processing that generates object code from an input source program, the program comprising:
processing for character string interpretation, so as to divide instructions coded within an input source program into tokens;
processing for analyzing syntax, so as to analyze the tokens;
processing for storing a definition of an intrinsics function and instruction attribute information characterizing an instruction coded by said intrinsics function as intrinsics function information;
processing for developing an instruction that calls an intrinsics function within said source program by referring to said intrinsics function information; and
generating code that converts said developed source program either to machine language or to intermediate code.
15. The recording medium according to claim 14, wherein said syntax analysis processing distinguishes a prescribed identifier indicating an intrinsics function from among a function declaration part of said source program, thereby making a judgment as to whether or not said intrinsics function definition and said instruction attribute information are defined.
16. A computer-readable recording medium onto which is stored a program causing a computer to execute compiling processing that generates object code from an input source program, said program comprising:
processing for character string interpretation, so as to divide instructions coded within an input program into tokens;
processing for analyzing syntax, so as to analyze said tokens;
processing for storing a definition of an intrinsics function and instruction attribute information characterizing an instruction coded by said intrinsics function as intrinsics function information; and
processing for accessing said intrinsics function information;
processing for developing an instruction that calls an intrinsics function within said source program by referring to said intrinsics function information; and
processing for generating code that converts the thus developed source program either to machine language or to intermediate code,
wherein said intrinsics function information comprises a function declaration statement to which is added a prescribed identifier indicating an intrinsics function, dummy argument information, and said instruction attribute information.
17. A program for causing a computer to execute compiling processing that generates object code from an input source program, said program comprising:
processing for character string interpretation so as to divide instructions coded within an input source program into tokens;
processing for analyzing said tokens, and performing syntax analysis so as to judge whether or not a combination of the tokens has an intrinsics function definition and a definition of instruction attribute information characterizing an instruction coded by said intrinsics function;
processing for storing said intrinsics function definition and intrinsics function information as intrinsics function information;
processing for developing an instruction that calls an intrinsics function within said source program by referring to said intrinsics function information; and
processing for generating code that converts said developed source program either to machine language or to intermediate code.
18. The program according to claim 17, wherein said syntax analysis processing distinguishes a prescribed identifier that indicates an intrinsics function from among a function declaration part of said source program, thereby making a judgment as to whether or not said intrinsics function definition and said instruction attribute information are defined.
19. A program for causing a computer to execute compiling processing that generates object code from an input source program, said program comprising:
processing for character string interpretation so as to divide instructions coded within an input source program into tokens;
processing for analyzing the syntax of said tokens;
processing for storing an intrinsics function definition and attribute information characterizing an instruction coded by said intrinsics function as intrinsics function information;
processing for accessing said intrinsics function information;
processing for developing an instruction that calls an intrinsics function within said source program by referring to said intrinsics function information; and
processing for generating code that converts said developed source program either to machine language or to intermediate code.
20. A program for causing a computer to execute compiling processing that generates object code from an input source program, said program comprising:
processing for character string interpretation so as to divide instructions coded within a source program into tokens;
processing for analyzing the syntax of said tokens;
processing for storing an intrinsics function definition and attribute information characterizing an instruction coded by said intrinsics function as intrinsics function information;
processing for accessing said intrinsics function information;
processing for developing an instruction that calls an intrinsics function within said source program by referring to said intrinsics function information; and
processing for generating code that converts said developed source program either to machine language or to intermediate code,
wherein said intrinsics function information is made up of a function declaration statement to which is added a prescribed identifier indicating an intrinsics function, dummy argument information, and said instruction attribute information.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. An automatic assignment logical circuit apparatus for selecting a master device and a slave device from among a first bay device and a second bay device, wherein said first bay device being connected to the first bay connector and said second bay device being connected to the second bay connector, and said first bay connector and said second bay connector are in cascaded, said automatic assignment logical circuit apparatus comprising:
an OR gate having first and second connection points for electrically connecting to said first bay connector, wherein said first and second connection points for receiving a pair of Boolean algebra value from said first bay connector and output a first Boolean algebra value;
a first transistor having a emitter electrode for receiving said first Boolean algebra value and having base electrode for electrically connecting to said first bay connector and a reference voltage also applied to said base electrode, wherein said first transistor will be conducted when a device is plugged into said first bay connector to trigger said base electrode and said base electrode will not be triggered when a device is pulled out said first bay connector;
a second transistor having a base electrode for receiving said first Boolean algebra value passed through said first transistor and a collector electrode for electrically connecting to said first bay connector, wherein said second transistor will be conducted when said first Boolean algebra value having high level and generates a second Boolean algebra value at said collector electrode for sending to said first bay connector and a high voltage also applied to said collector electrode; and
a third transistor having a base electrode for receiving said second Boolean algebra value passing through said second transistor and generating a third Boolean algebra value at said third transistor’s collector electrode which is electrically connected to said second bay connector, wherein said third transistor will be conducted when said second Boolean algebra value having high level and said generated third Boolean algebra value for sending to said second bay connector and a high voltage also applied to said collector electrode.
2. The automatic assignment logical circuit apparatus according to claim 1, wherein said pair of Boolean algebra value is related to the device plugged into said first bay connector.
3. The automatic assignment logical circuit apparatus according to claim 1, wherein said pair of Boolean algebra value is (0,0) when the device plugged into said first bay connector is a non-IDE device.
4. The automatic assignment logical circuit apparatus according to claim 1, wherein said pair of Boolean algebra value is (1,0) or (0,1) when the device plugged into said first bay connector is an IDE device.
5. The automatic assignment logical circuit apparatus according to claim 1, wherein said first bay connector is the master device connector when said second Boolean algebra value is \u201c0\u201d.
6. The automatic assignment logical circuit apparatus according to claim 1, wherein said first bay connector is the slave device connector when said second Boolean algebra value is \u201c1\u201d.
7. The automatic assignment logical circuit apparatus according to claim 1, wherein said second bay connector is the master device connector when said third Boolean algebra value is \u201c0\u201d.
8. The automatic assignment logical circuit apparatus according to claim 1, wherein said second bay connector is the slave device connector when said third Boolean algebra value is \u201c1\u201d.
9. The automatic assignment logical circuit apparatus according to claim 1, wherein said second and third Boolean algebra value is different.
10. The automatic assignment logical circuit apparatus according to claim 1, wherein said first and second Boolean algebra value is different.