Memory allocation method and device for single-chip microcomputer, single-chip microcomputer and storage medium
The embodiment of the invention relates to the field of information processing, and discloses a memory allocation method and device for a single-chip microcomputer, the single-chip microcomputer and a storage medium. The method comprises the following steps: judging whether a memory request is a lar...
Gespeichert in:
Hauptverfasser: | , , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention relates to the field of information processing, and discloses a memory allocation method and device for a single-chip microcomputer, the single-chip microcomputer and a storage medium. The method comprises the following steps: judging whether a memory request is a large memory request or a small memory request; if the type of the received memory request is a small memory request, the found free memory block is divided into two parts, the front-end part is allocated to the user, and the rear-end part is returned to a free linked list; if the type of the received memory request is a large memory request, judging whether the found free memory block meets a large memory block segmentation condition or not, allocating the segmented rear end part to the user, returning the front end part to the free linked list, and separating the small memory request from the large memory request to obtain the large memory block. The large memory request and the small memory request are located at t |
---|