zoukankan      html  css  js  c++  java
  • IAR Build from the command line 环境变量设置

    http://supp.iar.com/Support/?Note=47884

    Technical Note 47884

    Build from the command line


    The alternatives below are exemplified for Embedded Workbench for ARM (EWARM), but can be easily be modified for another EW target.
    This Technical Note might be helpful if you are looking for way to build your project outside the Embedded Workbench.

    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 line can be used to build the project:

    (EWARM installation)commoninIarBuild.exe test.ewp Debug
    

    Note: run IarBuild.exe without parameters to get Usage information

    To re-build use the following command line (extended with an option to get logging of all compiler messages):

    (EWARM installation)commoninIarBuild.exe test.ewp -build Debug -log all
    

    ... which corresponds to ...

    (EWARM installation)commoninIarBuild.exe test.ewp -clean Debug -log all
    (EWARM installation)commoninIarBuild.exe test.ewp -make Debug -log all
    
    Alternative 2 - run compiler and linker from the command line

    You can run all .exe files in the (EWARM installation)armin folder from the command line. Run each of them, e.g. iccarm.exe, without parameters to get a list of available command line options.

    You can make a .bat file that compiles each source file one-by-one if you know the command line parameters.

    To see the command line parameters, enable the option IAR Embedded Workbench IDE > Tools > Options... > IDE Options > Messages > Show build messages > select 'All'.

    To make a .bat file compiling one source file, enter the full path to iccarm.exe followed by the parameters (copy from the build window) using the format:

    (EWARM installation)arminiccarm.exe <source-file> <options>
    

    When you get the command line working for one source file, you can add more command lines for the remaining source files.

    If you want to invoke ilinkarm too, you can use the option -f <file> , for example

    (EWARM installation)arminilinkarm.exe -f options.xcl
    

    and in the file options.xcl put all the parameters from the build window (put the parameters on separate lines).

    IAR_ARM_WORKBENCH_PATH : C:Program Files (x86)IAR SystemsEmbedded Workbench xxxx

    IAR_COMMON_PATH : %IAR_ARM_WORKBENCH_PATH%commonin

    IAR_TOOLCHAIN_PATH : %IAR_ARM_WORKBENCH_PATH%armin

    Path : %IAR_COMMON_PATH%;%IAR_TOOLCHAIN_PATH%; .........

  • 相关阅读:
    【BZOJ 1185】 凸包+旋转卡壳
    【BZOJ 2829】 2829: 信用卡凸包 (凸包)
    【BZOJ 1045】 1045: [HAOI2008] 糖果传递
    【BZOJ 2453|bzoj 2120】 2453: 维护队列 (分块+二分)
    【BZOJ 3343 】 分块
    【BZOJ 1069】 凸包+旋转卡壳
    【NOIP 2016 总结】
    【无聊放个模板系列】洛谷 负环 模板
    【无聊放个模板系列】BZOJ 3172 (AC自动机)
    【无聊放个模板系列】HDU 3506 (四边形不等式优化DP-经典石子合并问题[环形])
  • 原文地址:https://www.cnblogs.com/shangdawei/p/3498738.html
Copyright © 2011-2022 走看看