Cross-Compilation-Dataset
收藏资源简介:
该数据集用于交叉编译函数变体的研究,包含多种架构和优化级别的函数信息。数据集中的每个条目包括库名称、文件路径、函数名称、架构、优化级别、功能数量和结构特征等。这些数据可用于比较不同平台二进制文件中的函数,通过中间表示(IR)进行分析。
This dataset is utilized for the study of cross-compiling function variants, encompassing information on functions across various architectures and optimization levels. Each entry within the dataset includes the library name, file path, function name, architecture, optimization level, number of features, and structural characteristics. These data can be employed to compare functions in binaries across different platforms, analyzed through intermediate representation (IR).
数据集概述
数据集名称
Cross-Compilation-Dataset
数据集内容
该数据集包含跨编译函数变体的信息,具体包括以下字段:
lib_name: 库名称file_path: 文件路径function_name: 函数名称arch: 架构optimization_level: 优化级别num_features: 数字特征,表示函数特征的数组struct_features: 结构特征,包含基本块数量、边数量等信息
数据格式
数据集文件为JSON格式,可通过Python加载和访问。
数据访问示例
python
import json a = json.load(open("dataset_cross.json",r)) print(a.keys()) dict_keys([lib_name, file_path, function_name, arch, optimization_level, num_features, struct_features])
特征解释
- 数字特征:一个包含7个整数的数组,表示函数的基本块数量、指令类型数量等。
- 结构特征:一个包含5个值的数组,包括基本块数量、边数量、基本块ID列表、边列表和属性数组。
数据集生成
数据集通过使用Dockcross平台进行跨编译生成,支持多种架构,并使用开源库如openssl和fontforge生成函数。




