zoukankan      html  css  js  c++  java
  • 使用 stvd 编译STM8S 时能看到使用RAM ROM大小的方法

    刚刚安装的STVD编译器,编译时候不显示用了多少RAM和ROM?对于此问题。有两个方法:一是看.map文件 还有一种是 添加一个补丁,详细操作例如以下,能够在我的资源里下载对应的文件。
    http://download.csdn.net/detail/chuangwu2009/7350127

    网上找到的:
    1. 将附件压缩包中的mapinfo.exe解压到stvd的安装路径STMicroelectronicsst_toolsetstvd中;
    2. 用stvd打开你的project文件,在project上点右键选settings...
    3. 右側的选项卡选择Linker。将category的下拉框选成output,然后在Generate Map file前打勾。
    4. 再将选项卡上选择到Post-Build,在下方文本框中去掉旧的文本,又一次粘贴一行内容“mapinfo $(OutputPath)$(TargetSName).map”;--记得不要加双引號哦
    5. 点OK按键确定。菜单File->save workspace。保存project;
    6. 又一次编译下。你就能看到flash,ram,eeprom占用字节数了 。



    看我的结果:
    ram:130   flash:7483   eeprom:0   stack:40




  • 相关阅读:
    Vasya and Endless Credits CodeForces
    Dreamoon and Strings CodeForces
    Online Meeting CodeForces
    数塔取数 基础dp
    1001 数组中和等于K的数对 1090 3个数和为0
    1091 线段的重叠
    51nod 最小周长
    走格子 51nod
    1289 大鱼吃小鱼
    POJ 1979 Red and Black
  • 原文地址:https://www.cnblogs.com/mengfanrong/p/5193407.html
Copyright © 2011-2022 走看看