简体   繁体   English

为什么mbed生成不同大小的bin文件在线编译和离线编译(导出gcc_arm makefile)

[英]Why mbed generating bin file different size online compiler and off line compile (export gcc_arm makefile)

When build project on online ide genereted bin file size 21k but exported project that export settings Make-GCC-ARM, build with make command on linux terminal generated file size 52k.And how can reduce offline generated bin file size?在在线 ide 生成项目时生成的 bin 文件大小为 21k,但导出的项目导出设置 Make-GCC-ARM,在 linux 终端上使用 make 命令生成文件大小为 52k。如何减少离线生成的 bin 文件大小?

Thanks.谢谢。

Online Mbed Compiler uses ARMC6 toolchain to compile the code. Online Mbed Compiler 使用ARMC6工具链编译代码。 While you are using GCC_ARM to compile locally.当您使用GCC_ARM在本地编译时。 Different toolchains compile code differently hence the binary size difference.不同的工具链以不同的方式编译代码,因此存在二进制大小差异。

If you use ARMC6 toolchain locally to compile, the binary size will be very close to the one generated by an online compiler.如果在本地使用ARMC6工具链编译,二进制大小将非常接近在线编译器生成的二进制大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM