代码拉取完成,页面将自动刷新
同步操作将从 AGeek/keil_development_assistant 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef PARSE_MAP_FROM_KEIL_H
#define PARSE_MAP_FROM_KEIL_H
#include <QString>
#include "use_percentage_bar.h"
#include <QList>
typedef struct {QString fn_name;QString file_name; uint64_t size;}map_item;
typedef struct image_item {
QString Code;
QString RO_Data;
QString RW_Data;
QString ZI_Data;
QString Debug;
QString Object_Name;
}image_item_t;
class parse_map_from_keil
{
public:
bool to_parse_map_from_keil(QString path);
parse_map_from_keil(QString path,
uint64_t to_iram_base,
uint64_t to_iram_max_size,
uint64_t to_irom_base,
uint64_t to_irom_max_size
);
QString find_map_path(const QString& dir_path);
bool parse_excution_region_info(QString info_string);
bool parse_map_file(QString path);
QList<use_percentage_bar*>ram_list;
QList<use_percentage_bar*>flash_list;
QString getMap_path() const;
void setMap_path(const QString &value);
QList<image_item_t*> getInfo_list() const;
void setInfo_list(const QList<image_item_t*> &value);
uint64_t getAll_ram_size() const;
uint64_t getAll_flash_size() const;
private:
uint64_t iram_base;
uint64_t iram_max_size;
uint64_t irom_base;
uint64_t irom_max_size;
uint64_t all_ram_size=0;
uint64_t all_flash_size=0;
//,"HEAP","STACK","heap","stack"
QList<QString> ram_keyword={"ER$$","RW_","ER_RW","ER_ZI"};
QList<QString> flash_keyword={"RO","FLASH","flash","ro","text","TEXT"};
QString map_path;
QList<image_item_t*> info_list;
};
#endif // PARSE_MAP_FROM_KEIL_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。