(1) 新建工程时已加载STARTUP.A51文件编译结果(uVision V4.02)
编译成功后,输出窗口中第1行到第6行的信息含义:
①编译目标“Target 1”;
②汇编启动文件STARTUP.A51;
③链接:将编译后生成的文件与其他文件合并成机器能识别的机器文件。
④编译后程序的大小;参数的单位是Byte,这是编译后的文件占用单片机系统存储的容量表示,以便于选择不同存储容量型号的单片机时做一个参考,或者对程序修改或升级时有一个参考和估计,data对应的是片内的RAM,xdata对应的是程序中片外扩展的存储器上需要占用的容量,code是编写的程序占用单片机片内的存储程序ROM上的容量。同一系列不同型号的单片机,有时候RAM和ROM的大小是不一样的。
⑤从“timer_led”工程中生成了hex文件,该文件是后期调试下载的关键文档;
⑥“timer_led”程序中有0个错误,0个警告;
(2) 新建工程时未加载STARTUP.A51文件编译结果(uVision V4.02)
编译成功后,输出窗口中第1行到第5行的信息含义:
① 编译目标“Target 1”;
② 链接:将编译后生成的文件与其他文件合并成机器能识别的机器文件。
③ 编译后程序的大小;参数的单位是Byte,这是编译后的文件占用单片机系统存储的容量表示,以便于选择不同存储容量型号的单片机时做一个参考,或者对程序修改或升级时有一个参考和估计,data对应的是片内的RAM,xdata对应的是程序中片外扩展的存储器上需要占用的容量,code是编写的程序占用单片机片内的存储程序ROM上的容量。同一系列不同型号的单片机,有时候RAM和ROM的大小是不一样的。
④从“timer_led”工程中生成了hex文件,该文件是后期调试下载的关键文档;
⑤ “timer_led”程序中有0个错误,0个警告;
参考资料:
(1)keil编译后下方的输出窗口有句话 Program Size:data= 9.0 xdata=0 code=50 这句话是什么意思,揭示了什么_百度知道 (baidu.com);
相关文章









