Recent

Author Topic: Too memory used in arm-linux,how to solve?  (Read 3114 times)

yayongm

  • New Member
  • *
  • Posts: 13
Too memory used in arm-linux,how to solve?
« on: May 29, 2013, 11:52:47 am »
I have a little program run in arm linux compiled by lazarus+qt4, but it used more than 300m memory in top command window.
The hardware is arm2440, and I want to run many little programs in it, so is there a way or a compiler condition to fix it?

yayongm

  • New Member
  • *
  • Posts: 13
Re: Too memory used in arm-linux,how to solve?
« Reply #1 on: May 29, 2013, 12:16:03 pm »
I found a page:http://www.linuxatemyram.com/
Maybe it is my answer.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Too memory used in arm-linux,how to solve?
« Reply #2 on: May 30, 2013, 09:40:46 am »
Maybe your answer is to go to project options, disable debug output (no -g, -gw, -gl, -gh, etc) and strip the executable (-Xs)
See
http://wiki.lazarus.freepascal.org/Lazarus_Faq#Why_are_the_generated_binaries_so_big.3F
and
http://wiki.lazarus.freepascal.org/Size_Matters


... or search the forum and wiki, this has been discussed many, many, many times.

Note: above is a generic approach that should work for all platforms, don't know if there are arm or qt specific tricks.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Too memory used in arm-linux,how to solve?
« Reply #3 on: May 30, 2013, 01:21:06 pm »
How big is the executable then? I would guess Linux only reserves that much for it if application is somehow potentially using it once in a while. Does this happen with new empty project?

 

TinyPortal © 2005-2018