如何关闭Eclipse中某个文件夹的优化?

时间:2017-10-20 19:23:11

标签: c gcc eclipse-cdt compiler-optimization

我正在尝试关闭单个项目文件夹内容的优化。该项目目前正在使用优化级别-O3。

有一种简单的方法吗?

使用过的工具:

  1. 适用于ARM嵌入式处理器的GNU工具(arm-none-eabi-gcc) gcc版本5.4.1 20160919(发布)
  2. 适用于C / C ++开发人员的Eclipse IDE 版本:Neon.2发布(4.6.2) 构建ID:20161208-0600
  3. 编辑: 我为每个子目录都有一个自动生成的makefile。 实施例。

    # Automatically-generated file. Do not edit!
    
    
    # Add inputs and outputs from these tool invocations to the build variables 
    C_SRCS += \
    ../App/src/CustomerUnit.c \
    
    OBJS += \
    ../App/src/CustomerUnit.o \
    
    C_DEPS += \
    ../App/src/CustomerUnit.d \
    
    # Each subdirectory must supply rules for building sources it contributes
    ahuapp/Diagnostics/cag/%.o: ../App/src/%.c
        @echo 'Building file: $<'
        @echo 'Invoking: Cross ARM GNU C Compiler'
        arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -O3 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -D$(M3AppSymbols) -I"../$(M3APPIncludePaths)" -std=gnu11 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
        @echo 'Finished building: $<'
        @echo ' '
    

    所以我想做的事情,我不知道,只是为了这个特定的子目录,将-O3级别更改为-O0。

0 个答案:

没有答案
相关问题