-
公开(公告)号:US20220244931A1
公开(公告)日:2022-08-04
申请号:US17727166
申请日:2022-04-22
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Tao YANG , Chuancai GU , Qiulin CHEN
IPC: G06F8/54
Abstract: This application discloses an image file obtaining method, including: determining a first value of each of N tasks in program source code (501), where the first value is first duration required for executing each of the N tasks or the first value is a ratio of the first duration to second duration, the second duration is duration required for loading each of the N tasks, and N is a positive integer; sorting the N tasks in descending order of the first values (502); and linking the sorted N tasks to obtain an image file (503). According to the method, after downloading the image file, an embedded apparatus successively loads and executes the N tasks, thereby shortening a startup time period of the embedded apparatus.