发明名称 Data layout using data type information
摘要 One embodiment relates to a computer-implemented method of compiling a software program into an executable binary file, including determining a data layout in the binary file and a data layout in the executable's dynamically allocated memory. The method includes taking into account data types of data as a factor in determining a data layout for the binary file and for the executable's dynamically allocated memory, wherein the data types include a floating-point data type and a non-floating-point data type. Other embodiments, aspects and features are also disclosed herein.
申请公布号 US9146719(B2) 申请公布日期 2015.09.29
申请号 US200711725837 申请日期 2007.03.20
申请人 Hewlett-Packard Development Company, L.P. 发明人 Lozano Luis A.;Hundt Robert;Liu Shin-Ming;Mannarswamy Sandya S;Moon Sungdo
分类号 G06F9/45 主分类号 G06F9/45
代理机构 Okamoto & Benedicto LLP 代理人 Okamoto & Benedicto LLP
主权项 1. A method comprising: compiling, by a computer system, a program into an executable file, the compiling comprising: identifying a plurality of data types of data items in the program, the plurality of data types comprising a first data type and a second data type, wherein the data items comprise variables in the program that are according to the data types;constructing a global variable layout table for the program based on annotations of the variables generated from computing variable affinity information between each pair of the variables in the program;creating, using the global variable layout table, a first partition for data items of the first data type, and a second partition for data items of the second data type;determining an ordering of the data items of the first data type in the first partition based on affinity and hotness characteristics of the data items of the first data type;separately determining an ordering of the data items of the second data type in the second partition based on affinity and hotness characteristics of the data items of the second data type; andusing the orderings in the first and second partitions when placing the data items of the first and second data types into the executable file.
地址 Houston TX US