A method and device for loading a Linux-system ELF file in a Windows system. The method comprises: parsing an ELF file according to the format of the ELF file (S101); loading the entire ELF file into a memory of a Windows system according to a Windows system memory storage rule (S102); according to a parsing result of the ELF file, acquiring a memory address, in the Windows system, of file content corresponding to a symbol recorded in a symbol table of the ELF file (S103); and linking the symbol and the memory address, in the Windows system, of the file content corresponding to the symbol (S104). The ELF file is loaded directly into the memory of the Windows system, so that symbols, such as functions, in the ELF file can operate directly on the Windows system without needing to install an Android virtual machine on the Windows system. The operation speed is also greatly improved, and the hard disk space and the memory occupancy are reduced.
展开▼