IAR 命令行编译

本文介绍了如何在IAR Embedded Workbench的命令行环境下,独立于IDE编译项目。提供了两种方法:通过运行IarBuild.exe和直接调用编译器与链接器执行文件。详细步骤包括创建批处理文件、设置参数以及使用-f选项处理链接过程。
摘要由CSDN通过智能技术生成

Introduction

This Technical Note shows examples of how to build an IAR Embedded Workbench project from the command line, outside the IDE.

Discussion

The alternatives below are examples made for IAR Embedded Workbench for Arm, but they can easily be modified for other target devices.

 

Alternative 1 - Run IarBuild.exe from the command line

If you have a project file named test.ewp with a configuration named Debug, the following command can be used to build the project:

<installation dir>\common\bin\IarBuild.exe test.ewp Debug

Note: Run IarBuild.exe without parameters to get usage information.

 

To rebuild the project, use the following command (extended with an option to log all compiler messages):

<installation dir>\common\bin\IarBuild.exe test.ewp -build Debug -log all

 The rebuild command above corresponds to:

<installation dir>\common\bin\IarBuil
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值