Author Topic: Memory likage when I make a small changes to C::B cources  (Read 5686 times)

Offline dekar

  • Single posting newcomer
  • *
  • Posts: 5
Memory likage when I make a small changes to C::B cources
« on: January 08, 2014, 02:57:32 pm »
I change "arm-elf-" to "arm-none-eabi" strings in source code of C::B and rename src/plugins/compilergcc/resources/compilers/options_arm-elf-gcc.xml to src/plugins/compilergcc/resources/compilers/options_arm-none-eabi-gcc.xml

C::B starts, is successfully compiling my project, but it's heap growing up and takes all system memory at time.
When I close the program it still continue to run and growing memory consumption. Only #kill -9 helps.

How I can fix it, or where are roots of this problem?

make changes in files
Code
src/CodeBlocks.cbp
src/CodeBlocks_wx30_64.cbp
src/CodeBlocks-unix.cbp
src/CodeBlocks_wx30-unix.cbp
src/CodeBlocks_wx30.cbp
src/plugins/scriptedwizard/resources/arm/wizard.script
src/plugins/compilergcc/resources/compilers/options_arm-elf-gcc.xml
src/plugins/compilergcc/compilerGNUARM.cpp
src/plugins/contrib/lib_finder/lib_finder/readme.txt

for easy way to make this behavior use this bash script in the root of sources:
Code: bash
for FILE in `grep "\-elf\-" * -R |awk '{print $1}' |uniq |sed 's|:$||'| grep -v "\.bak$"`
do
    sed 's|-elf-|-none-eabi-|g' -i".bak" $FILE
done
for FILE in `find . |grep '-elf-' | grep -v '.bak$'`
do
    NEWFILE=`echo $FILE| sed 's|-elf-|-none-eabi-|g'`
    mv $FILE $NEWFILE
done
« Last Edit: January 08, 2014, 02:59:42 pm by dekar »