Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

ARM: Removing unused variables that are used in unused functions

$
0
0
Removing variables used in unused functions Hello, I'm having issue with removing unused variables, when they are used in unused functions. I'm using Keil 5.25.2.0, armcc.exe and armlink.exe V5.06 update 6 build 750. My project options are set for space optimization: - Use cross-module optimization - One ELF section per function - -O2 -Ospace - --remove My MCU is a STM32F0, Cortex M0. Here is a sample of what I do : int unused_data[100]; main(){ some code...

Viewing all articles
Browse latest Browse all 3049

Trending Articles