Recent

Author Topic: Wince program too big  (Read 8580 times)

joerg_b

  • Newbie
  • Posts: 2
Wince program too big
« on: January 29, 2007, 10:33:44 pm »
Hallo all
i'm a Lazarus newbee, and mainly I installed it for creating a few wince-programs.
The installation works good, also the installation of the ARM cross-compiler.

So I started do make my first "program"   :D
It's just a form, a button and the method onClick to Close the program.
I tryed it under Win2k, then I switched the items to recompile it for Wince.
So far, I was enthused of Lazarus. But if I copied the Exe-File to my PDA, I saw, the File has a size of nearly 12MByte  :cry:

Where I go wrong ? and what can I do to reduce the size ?
12 MB is too big for my PDA  :?

I use Lazarus 0.9.21 beta and the version of fpc is 2.1.1 for both, win32 and wince

Some help with this would be greatly appreciated.

Greetings
 Jörg

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: Wince program too big
« Reply #1 on: January 30, 2007, 12:39:02 am »
How did you install lazarus and fpc? Is the version you are using old?

Plus, there is debug info on the executable. Use arm-wince-strip --strip-all myexecutable.exe to remove debug info.

a simple exe should have 1 MB size as far as I remember.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: Wince program too big
« Reply #2 on: January 30, 2007, 09:06:29 am »
If you want to deploy your application, make sure you don't add debug information.

In the compiler options, uncheck line info (-gl) and debug information (-g) and check smart linking (-XX).

joerg_b

  • Newbie
  • Posts: 2
Wince program too big
« Reply #3 on: January 30, 2007, 08:56:42 pm »
@sekel
@vincent

many thanks for your replay.
I changed the linker options (line numbers are checked  :? ) and the win32 compiler build an 989 kb exe-file.
then I changed to wince arm and this compiler build an 1.2 MByte exe-file  :( from the same source.

But it's always better then 12 MByte  :) Thanks again for the hints.

Exist a feature to hold the needed packages in one or more dll's (bpl's in Delphi or CBuilder) ?
I looked for it, but I can't find it, and I found nothing in the Wiki too.


Quote

How did you install lazarus and fpc? Is the version you are using old?

I download the files "Lazarus-0.9.21-fpc-2.1.1-20070104-cross-arm-wince"
and "Lazarus-0.9.21-fpc-2.1.1-20070115-win32.exe".
I installed the win32-file and then the wince file.
Is this an old version ?
Or should I install lazarus or fpc in another way ?


Sorry for the stupid questions, but I'm a newbee at lazarus and a newbee of programming for wince  :?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Wince program too big
« Reply #4 on: January 30, 2007, 09:17:33 pm »
> Exist a feature to hold the needed packages in one or more dll's (bpl's in Delphi or CBuilder) ?

No, it requires support on the compiler. This is being built, but isn´t ready.

> Is this an old version ?
> Or should I install lazarus or fpc in another way ?

I think this is recent enougth.

If you find bugs it may be necessary to upgrade to a newer version. Otherwise this should be more then enougth.

 

TinyPortal © 2005-2018