摘要:
Ubershaders may be used in a graphics development environment as an efficiency tool because many options and properties may be captured in a single shader program. Each selectable option of property in the shader code may be tagged with an attribute to indicate the presence of the selection. The single shader program embodying the many selectable options and properties may be compiled to an intermediate version that also embodies the many options and properties, along with at least remnants of the tagging attributes. Upon a request for executable code including indications of the desired selectable options or properties, generation of the executable code may proceed such that it includes only the desire selectable options and properties and not other selectable options and properties embodied in the source code.
摘要:
A technique for creating dynamically attachable and detachable binary files is provided. The invention provides an efficient mechanism to manage the existing code bases with respect to the additional code needed for a particular feature as a single code base. It also provides a mechanism for designers to plan for such features even before the code is conceptualized. The system parses the code having a dynamic feature manager (DFM) tag to produce a base code wherein the DFM tag encloses a feature. The multiple code sets based on the DFM tags are created. A feature change table storing the information about a changed feature compared to the feature from the code sets is generated and stored in the system. The code sets are then compiled to generate binaries. The difference between each of the binaries, using the feature change tables is determined and stored which is used for creating differential binary file(s).
摘要:
A compiling device comprising: a memory; and a processor coupled to the memory, the processor configured to: extract, from a file, an optimization directive for a program at an intermediate stage of program optimization; by applying the optimization directive, verify validity of data dependency of the program; and by applying the optimization directive, determine a probability of improvement in execution performance, based on a degree of satisfaction of an optimization applicable condition that is to be satisfied by the program.
摘要:
Provided are an algorithm selection program, an algorithm selection device, and an algorithm selection method which can improve the algorithm selection grading for call-out of a function by the program. When a call-out source program calls out an extension program which executes a predetermined function, the algorithm selection program selects one of algorithm among of a plurality of algorithms of the extension program by executing: acquiring from a storage device, a command which calls out an extension program in the call-out source program to an information processing device having the storage device and selection information correlated to the one of algorithm; and selecting the algorithm which performs a predetermined function in accordance with the acquired selection information.
摘要:
A system is provided for associating metadata attributes with program elements. During operation, the system receives source code containing syntactic elements that specify metadata attributes for program elements. The metadata attributes do not affect program execution. The system then parses the source code to obtain the metadata attributes. Next, the system associates the metadata attributes with corresponding program elements and determines values associated with the metadata attributes. Finally, the system incorporates the metadata attributes, including identifiers for the associated values and the associated program elements, into object code for the program, thereby allowing the metadata attributes to be accessed from the object code. Another embodiment of the present invention provides a system for accessing metadata attributes for program elements from object code through an application programming interface (API).
摘要:
A plurality of source files (20) and one or more header files (21) are provided. The header files that contain information that several of the source files refer to. The original files are preprocessed, each to generate a respective preprocessed file, said preprocessing comprising expanding the several of the source files with the information from a first header file. A collective processing step (24a) is applied to make coordinated changes to information from the preprocessed files. The changed preprocessed files are used to regenerate modified source (25) and header (26) files. For regenerating (24b) the first header file, one of the preprocessed files is selected on the basis of detection that the selected file elaborates the information from the first header file. The first header file (26a) is regenerated from the information in the selected file.
摘要:
A data processor for operating certain data in accordance with an instruction is described. The data processor comprises: a first register unit (137a) for holding data; a second register unit (137d) for holding data; and a processing means (138) for processing: at least zero-extending data when the instruction designates the first register, and at least sign-extending data when the instruction designates the second register.
摘要:
The present invention discloses a program converting unit for generating a machine language instruction from a source program for a processor that manages an N-bit address while processing M-bit data, N being greater than M, and such a processor that runs the converted program. The program converting unit comprising: a parameter holding unit for holding a data width and a pointer width designated by a user, the data width representing the number of bits of data used in the source program while the pointer width representing the number of bits of an address; and a generating unit for generating an instruction to manage the data width when a variable operated by the instruction represents the data, and for generating an instruction to manage the pointer width when a variable operated by the instruction represents the address.
摘要:
When an encoded source file is inputted to a compiler, the compiler decodes the encoded source file in certain units and partially restores the original source data. Then, the restored part is converted to an intermediate text in restored order, and an executable program is created from the intermediate text.