Compiler, compile method and compile apparatus
AssigneeFujitsu Limited
InventorYuichi Muramatsu
Life of this patent
Estimating the term…
Abstract
A compiler includes: a memory; and a processor coupled to the memory and configured to execute a compilation process, the compilation process includes: reading a source code to be compiled and literal tuples each of which is a combination of a plurality of string literals having meanings that correspond to each other between a plurality of languages, and generating a code in which regarding each literal tuple, a calculation byte length which is greater than or equal to a longest byte length of the string literal among the literal tuple is allocated to each of the plurality of string literals that belong to the literal tuple and a start address of each string literal is referenced according to a locale designated at an execution time.
Claims21
A compile apparatus, comprising:
- a memory;
- and
- a processor coupled to the memory and configured to execute a compilation process, the compilation process includes:
- reading a source code to be compiled and literal tuples each of which is a combination of a plurality of string literals having meanings that correspond to each other between a plurality of languages, and
- generating a code in which regarding each literal tuple, a calculation byte length which is greater than or equal to a longest byte length of the string literal among the literal tuple is allocated to each of the plurality of string literals that belong to the literal tuple and a start address of each string literal is referenced according to a locale designated at an execution time.
A compile method, comprising:
- reading, by a computer, a source code to be compiled and literal tuples each of which is a combination of a plurality of string literals having meanings that correspond to each other between a plurality of languages, and
- generating, by the computer, a code in which regarding each literal tuple, a calculation byte length which is greater than or equal to a longest byte length of the string literal among the literal tuple is allocated to each of the plurality of string literals that belong to the literal tuple and a start address of each string literal is referenced according to a locale designated at an execution time.
A non-transitory, computer-readable recording medium having stored therein a program for causing a computer to execute a process, the process comprising:
- reading, by the computer, a source code to be compiled and literal tuples each of which is a combination of a plurality of string literals having meanings that correspond to each other between a plurality of languages, and
- generating, by the computer, a code in which regarding each literal tuple, a calculation byte length which is greater than or equal to a longest byte length of the string literal among the literal tuple is allocated to each of the plurality of string literals that belong to the literal tuple and a start address of each string literal is referenced according to a locale designated at an execution time.
Dependencies are inferred from the claim text.