Isomerization compiling method based on mimicry system simulation platform
By performing heterogeneous compilation on the mimicry system simulation platform, multiple heterogeneous simulation application services are generated, solving the problem of excessive resource consumption by physical servers with a single architecture, and achieving efficient resource utilization and scientific research convenience.
Patent Information
- Application Number
- CN202511475255.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-15
- Publication Date
- 2026-02-03
AI Technical Summary
The lack of a solution for generating multiple heterogeneous simulation application services on a single physical server in a mimicry system simulation platform leads to excessive consumption of physical resources, affecting research efficiency and cost.
On the mimicry system simulation platform, multiple heterogeneous simulation application services are generated on a single architecture physical server through a heterogeneous compilation method. The source code files are processed and compiled using the mimicry heterogeneous compilation service to generate heterogeneous simulation application services suitable for multiple architectures.
While reducing physical resource consumption and costs, it provides heterogeneous simulation application services with multiple architectures, supports the calling of mimicry system components, and improves scientific research efficiency and convenience.
Smart Images

Figure CN121455602A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to a network space security technology, in particular to a heterogeneous compiling method based on a quasistate system simulation platform. BACKGROUND
[0002] At present, in the related scientific research of quasistate, physical servers are used to realize the dynamic heterogeneous redundancy characteristics of the quasistate system. In this case, a plurality of servers need to be provided to build the quasistate system, which requires a large amount of physical resources. The emergence of the quasistate system simulation platform reduces the occupation of physical resources to a certain extent. The quasistate system simulation platform uses a plurality of virtual machines to replace a plurality of physical servers, and uses the plurality of virtual machines as heterogeneous simulation executors in the quasistate system, and constructs a complete quasistate system together with a quasistate distribution component, a quasistate decision component and a quasistate management component. SUMMARY
[0003] On the basis of the quasistate system simulation platform, the application provides a heterogeneous compiling method based on the quasistate system simulation platform, which aims to provide a solution for generating a plurality of heterogeneous simulation application services on a single-architecture physical server. The core target of the method is to reduce the occupation of physical resources in the quasistate system research process. Through the method, a user can perform heterogeneous compiling on the quasistate system simulation platform on the single-architecture physical server, and generate a plurality of heterogeneous simulation application services required by the heterogeneous executors. Thus, the foundation is laid for constructing a plurality of heterogeneous simulation executors of different architectures that can be called by quasistate system components, and the occupation of a large amount of physical resources in the quasistate system research process is greatly reduced, so that researchers can more conveniently carry out research and development and verification work.
[0004] The technical scheme of the application is as follows: A heterogeneous compiling method based on a quasistate system simulation platform, comprising: Step 1: a user uploads an application service source code file A that needs to be compiled heterogeneously in a quasistate system simulation platform operation page, selects N target architectures and N is greater than or equal to 3, selects differential parameters, clicks “submit”, and sends an http request to a quasistate heterogeneous compiling service; Step 2: the quasistate heterogeneous compiling service first performs preprocessing operation on the received http request, first performs parameter verification work, verifies whether the multipart, archs and vari parameters are transmitted into contents in a specific format, if the verification is passed, step 3 is entered, and if the verification fails, a response of parameter error is directly fed back to the quasistate system simulation platform operation page; Step 3: After receiving the above http request, the isomery compilation service parses the parameters passed in the http request, obtains the application service source file A passed in the http request according to the multipart parameter, creates a project storage directory, stores the application service source file A after decompression processing to the specified directory Z, and enters step 4. Step 4: The isomery compilation service matches the target architecture required by the user according to the archs parameter passed in, determines the configuration parameter archs_arg array corresponding to the target architecture parameter, and constructs the directory parameter sysroot; and enters step 5. Step 5: The isomery compilation service traverses the archs_arg array, and constructs the corresponding makefile file in sequence; writes the vari parameter, single compiler identifier, single linker identifier, finally generated executable file name, and sysroot configuration into the makefile file, performs project construction and dynamic linking, and outputs the result files B1, B2, B3...; Step 6: Record the architecture identification information tag_b1, tag_b2, tag_b3... of each output file in step 5; wherein the finally output file is a plurality of heterogeneous executable simulation application service files; the isomery compilation service stores the plurality of heterogeneous simulation application service files output in the specific directory Y. Step 7: The isomery compilation service returns the specific directory Y of the plurality of heterogeneous simulation application service files, the file names B1, B2, B3..., and the architecture identification information tag_b1, tag_b2, tag_b3... to the isomery system simulation platform operation page.
[0005] Further, the isomery compilation service provides the function of compiling the application service source code into a plurality of heterogeneous simulation application services on a single architecture physical server.
[0006] Further, the heterogeneous simulation application service is suitable for multiple architectures and is used to generate the application service response result of the isomery system for external access requests.
[0007] Further, the application service source file refers to the application service source code file that the user wants to run in the isomery system and is protected by the isomery security.
[0008] Further, in step 4, the isomery compilation service runs on a server that has configured a plurality of target architecture basic tool chains of x86, arm32, arm64, mipsel and ppc32.
[0009] The application has the following advantages: (1) The present application solves the problem of the lack of a solution for the quasi-state system simulation platform to generate multiple heterogeneous simulation application services on a single architecture physical server.
[0010] (2) The present application lays a solid foundation for the quasi-state system simulation platform to generate heterogeneous simulation execution bodies required by quasi-state system component calls.
[0011] (3) The present application enables R&D personnel to generate heterogeneous simulation application services required by quasi-state systems at a lower physical resource cost, saving R&D costs. BRIEF DESCRIPTION OF DRAWINGS
[0012] Figure 1 The present application is a heterogeneous compilation method flowchart. DETAILED DESCRIPTION
[0013] The present application will be described in detail below in conjunction with the drawings and specific embodiments. The present embodiment is implemented on the basis of the technical solution of the present application, and detailed implementation and specific operation processes are given, but the protection scope of the present application is not limited to the following examples.
[0014] A heterogeneous compilation method based on a quasi-state system simulation platform, as shown in Figure 1 , comprising: Step 1: The user uploads the application service source code file A that needs to be compiled in the quasi-state system simulation platform operation page, selects N (N≥3) target architectures (such as selecting x86, arm64, mipsel three target architectures), and selects differential parameters, clicks "submit", and sends an http request to the quasi-state heterogeneous compilation service.
[0015] Step 2: The quasi-state heterogeneous compilation service first performs preprocessing operations on the received http request, first performs parameter verification work, and verifies whether the multipart, archs, and vari parameters are transmitted into content conforming to a specific format. If the verification is passed, step 3 is entered; if the verification fails, a response of incorrect parameter transmission is directly fed back to the quasi-state system simulation platform operation page.
[0016] Step 3: After the quasi-state heterogeneous compilation service receives the above http request, the parameters transmitted in the http request are parsed, the application service source code file A transmitted in the http request is obtained according to the multipart parameter, a project storage directory is created, and the application service source code file A is stored in the specified directory Z after decompression processing, and step 4 is entered.
[0017] Step 4: The mimicry heterogeneous compilation service matches the target architecture required by the user based on the passed-in `archs` parameter, and determines the corresponding configuration parameters `archs_arg` array and build directory parameter `sysroot`. For example, if the user passes in the target architecture parameter `archs=[arm64, mipsel, x86]`, the corresponding configuration parameter `archs_arg=[aarch64-linux-gnu-gcc, mips64el-linux-gnuabi64-gcc, x86_64-linux-gnu-gcc]`, and the build directory parameter `sysroot= / home / mimic / cal`. The mimicry heterogeneous compilation service runs on a server with a basic toolchain configured for multiple target architectures including x86, arm32, arm64, mipsel, and ppc32. Proceed to Step 5.
[0018] Step 5: The mimicry heterogeneous compilation service iterates through the `archs_arg` array corresponding to the target architecture parameters and constructs the corresponding Makefile files sequentially. It writes the `vari` parameter, individual compiler identifier, individual linker identifier, the final executable file name, and the `sysroot` configuration into the Makefile file, performs project building and dynamic linking, and outputs result files B1, B2, B3...
[0019] Step 6: Record the architecture identifier information tag_b1, tag_b2, tag_b3... for each output file from Step 5. The final output files consist of multiple heterogeneous executable simulation application service files. The mimicry heterogeneous compilation service stores these multiple heterogeneous simulation application service files in a specific directory Y.
[0020] Step 7: The mimicry heterogeneous compilation service returns the specific directory Y, file names B1, B2, B3..., and architecture identification information tag_b1, tag_b2, tag_b3... of multiple heterogeneous simulation application service files to the mimicry system simulation platform operation page.
[0021] Application service source code files are the source code files for application services that users need to run in the mimicry system and be protected by mimicry security.
[0022] The mimicry heterogeneous compilation service provides the ability to perform mimicry heterogeneous compilation of application service source code on a single physical server architecture, generating multiple heterogeneous simulation application services.
[0023] Heterogeneous simulation application services are applicable to various architectures and are used to generate application service response results for mimicry systems in response to external access requests.
[0024] The above embodiment only expresses one implementation of the present application, which is described in more detail and in more detail, but cannot be understood as limiting the scope of the patent. It should be noted that for ordinary skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which are within the scope of the present application. Therefore, the scope of protection of the present application patent should be subject to the appended claims.
Claims
1. A heterogeneous compilation method based on a mimicry system simulation platform, characterized in that, include: Step 1: On the operation page of the mimicry system simulation platform, the user uploads the application service source code file A that needs to be heterogeneously compiled, selects N and N≥3 target architectures, selects the differentiation parameters, and clicks "Submit" to send an HTTP request to the mimicry heterogeneous compilation service; Step 2: The mimicry heterogeneous compilation service first performs preprocessing operations on the received HTTP request. First, it performs parameter validation to check whether the multipart, archs, and vari parameters are passed in a specific format. If the validation passes, proceed to Step 3; if the validation fails, it directly sends a response indicating that the passed parameters are incorrect to the mimicry system simulation platform operation page. Step 3: After receiving the above HTTP request, the mimicry heterogeneous compilation service parses the parameters passed in the HTTP request, obtains the application service source code file A passed in the HTTP request according to the multipart parameter, creates a project storage directory, decompresses the application service source code file A and stores it in the specified directory Z, and then proceeds to Step 4. Step 4: The mimicry heterogeneous compilation service matches the target architecture required by the user based on the passed-in archs parameter, determines the corresponding configuration parameter archs_arg array and build directory parameter sysroot for the target architecture parameter; proceed to step 5; Step 5: The mimicry heterogeneous compilation service traverses the archs_arg array and builds the corresponding makefile files in sequence; it writes the vari parameter, individual compiler identifier, individual linker identifier, final executable file name, and sysroot configuration into the makefile file, performs project building and dynamic linking, and outputs result files B1, B2, B3...; Step 6: Record the architecture identifier information tag_b1, tag_b2, tag_b3... for each output file in Step 5; where the final output file consists of multiple heterogeneous executable simulation application service files; the mimicry heterogeneous compilation service stores the multiple heterogeneous simulation application service files in a specific directory Y; Step 7: The mimicry heterogeneous compilation service returns the specific directory Y, file names B1, B2, B3..., and architecture identification information tag_b1, tag_b2, tag_b3... of multiple heterogeneous simulation application service files to the mimicry system simulation platform operation page.
2. The heterogeneous compilation method based on a mimicry system simulation platform according to claim 1, characterized in that, The mimicry heterogeneous compilation service provides the ability to perform mimicry heterogeneous compilation of application service source code on a single physical server architecture, generating multiple heterogeneous simulation application services.
3. The heterogeneous compilation method based on a mimetic system simulation platform according to claim 1, characterized in that, Heterogeneous simulation application service is used to generate application service response results of the mimicry system in response to external access requests.
4. The heterogeneous compilation method based on a mimicry system simulation platform according to claim 1, characterized in that, Application service source code files: These are the source code files for application services that users need to run in the mimicry system and be protected by mimicry security.
5. The heterogeneous compilation method based on a mimetic system simulation platform according to claim 1, characterized in that, In step 4, the mimicry heterogeneous compilation service runs on a server with a base toolchain configured for multiple target architectures, including x86, arm32, arm64, mipsel, and ppc32.
