Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
Hi Tomas, If you use a (cross-)compiler for ARM target processor, the generated binary will be indeed an ARM binary, of course (ready to run on an ARM under the selected target OS - WinCE in your case). If targetting WinCE OS, you can only use WinCE RTL and/or other units prepared for that ta

Re: [fpc-pascal] Exe size

2008-09-04 Thread Tomas Hajny
On 4 Sep 08, at 21:03, Paul wrote: > If I understand correcly, it's the lcl that adds a huge part to the exe. > Since I only use 1 small form, I could create it with api calls. > But FPC for WinCE uses a crosscompiler, how do I have to implement this ? > Are Windows api calls translated to ARM-cal

Re: [fpc-pascal] Exe size

2008-09-04 Thread Leonardo M . Ramé
Take a look at http://wiki.freepascal.org/KOL-CE, this project was specially started to create a "framework" for creating very small .exe applications using Delphi and FPC. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Thu, 9/4/08, Paul <[EMAIL PROTECTED]> wrote: > From: Paul <[EMA

Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
If I understand correcly, it's the lcl that adds a huge part to the exe. Since I only use 1 small form, I could create it with api calls. But FPC for WinCE uses a crosscompiler, how do I have to implement this ? Are Windows api calls translated to ARM-calls ? Paul ___

Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
- Original Message - From: "Graeme Geldenhuys" <[EMAIL PROTECTED]> Alternatively, write your WinCE program in pure assembly language. You should get fully function GUI apps at around 20-60 Kbytes. :-) LOL, I don't think so: my Delphi program has only very basic GUI (fi chat) which i

Re: [fpc-pascal] Exe size

2008-09-04 Thread Graeme Geldenhuys
On 9/4/08, Marco van de Voort <[EMAIL PROTECTED]> wrote: > In our previous episode, Paul said: > > Actually 1,16 MMb with 1 button and 1 label :-) > > http://wiki.freepascal.org/Size_Matters > > Pretty normal for a lazarus app. If you want minimal size, see the winapi > demo in the examples.

Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
- Original Message - From: "Vincent Snijders" <[EMAIL PROTECTED]> OK, you have a small size and a debuger crash. The debugger crash is ok, because you "do not need a working debugger". Indeed, only needed for testing but annoying though Paul _

Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
http://wiki.freepascal.org/Size_Matters Pretty normal for a lazarus app. If you want minimal size, see the winapi demo in the examples. I have this doc printed and it wont be a problen on Windows for which I have the Delphi program. I have not installed the WinCe version or crosscompiler, but

Re: [fpc-pascal] Exe size

2008-09-04 Thread Vincent Snijders
Paul schreef: You cannot have both: a small size without debug info *and* a working debugger. I do not need a working debugger. B: an executable that has a small size and can be released: disable all debugging options (-g, -gl, -gh) and enable string (-Xs) in the linking tab. I've done tha

Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
You cannot have both: a small size without debug info *and* a working debugger. I do not need a working debugger. B: an executable that has a small size and can be released: disable all debugging options (-g, -gl, -gh) and enable string (-Xs) in the linking tab. I've done that and also (-Og

Re: [fpc-pascal] Exe size

2008-09-04 Thread Marco van de Voort
In our previous episode, Paul said: > Actually 1,16 MMb with 1 button and 1 label :-) http://wiki.freepascal.org/Size_Matters Pretty normal for a lazarus app. If you want minimal size, see the winapi demo in the examples. ___ fpc-pascal maillist - f

Re: [fpc-pascal] ibase60.inc

2008-09-04 Thread Dimitrios Chr. Ioannidis
On Sep 4, 2008, at 5:03 PM, Marco van de Voort wrote: In our previous episode, Dimitrios Chr. Ioannidis said: is it possible someone to add support for OS X in ibase60.inc ? Firebird for OS X is working fine for quite some time now. This can be done. Are you sure that gds and fbembed real

Re: [fpc-pascal] Exe size

2008-09-04 Thread Vladimir Zhirov
Paul wrote: > I'm testing with FPC/Lazrus on Windows now, but a simple program results in > 11.5 MB size. > I have enabled -Xs, -CX, -Og, -O2 in the project->compiler options > (Lazarus), but the size is still the same. > Anything else I should do? Yes, you should also disable -gl option (Display

Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
Actually 1,16 MMb with 1 button and 1 label and a debugger crash as a bonus :-) Paul - Original Message - From: "Florian Klaempfl" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Thursday, September 04, 2008 4:39 PM Subject: Re: [fpc-pascal] Exe size Paul schrieb:

Re: [fpc-pascal] Exe size

2008-09-04 Thread Vincent Snijders
Paul schreef: I have to use: C:\FPC\2.2.2\bin\i386-win32\strip.exe --strip-all D:\FreePascal\Projects\Test\Project1.exe, anything else fails. In my Dutch version here, after compling is on the top position in that compiler tab which is in fact before compling Probably a translation bug. Af

Re: [fpc-pascal] Exe size

2008-09-04 Thread Florian Klaempfl
Paul schrieb: > I have to use: > > C:\FPC\2.2.2\bin\i386-win32\strip.exe --strip-all > D:\FreePascal\Projects\Test\Project1.exe, > anything else fails. > > In my Dutch version here, after compling is on the top position in that > compiler tab which is in fact before compling > Probably a translat

Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
I have to use: C:\FPC\2.2.2\bin\i386-win32\strip.exe --strip-all D:\FreePascal\Projects\Test\Project1.exe, anything else fails. In my Dutch version here, after compling is on the top position in that compiler tab which is in fact before compling Probably a translation bug. After compling, I

Re: [fpc-pascal] ibase60.inc

2008-09-04 Thread Marco van de Voort
In our previous episode, Dimitrios Chr. Ioannidis said: > is it possible someone to add support for OS X in ibase60.inc ? > > Firebird for OS X is working fine for quite some time now. This can be done. Are you sure that gds and fbembed really are libfbclient.dylib, and not the ones from the

Re: [fpc-pascal] Exe size

2008-09-04 Thread Michael Fuchs
Paul schrieb: I've read that, but isn't it suppose to work within the ide instead of always start the cmd prompt and type in this ? (or use a batch) Project -> Compilersettings -> [Last Tab] -> Execute after (I hope this is right, i've only the german version here). Will this work for WinCE

Re: [fpc-pascal] Exe size

2008-09-04 Thread Paul
I've read that, but isn't it suppose to work within the ide instead of always start the cmd prompt and type in this ? (or use a batch) Will this work for WinCE also, cause this what I actually want to do? Paul - Original Message - From: "Michael Fuchs" <[EMAIL PROTECTED]> To: "FPC-Pa

Re: [fpc-pascal] Exe size

2008-09-04 Thread Michael Fuchs
Michael Fuchs schrieb: >> I'm testing with FPC/Lazrus on Windows now, but a simple program results in 11.5 MB size. >> I have enabled -Xs, -CX, -Og, -O2 in the project->compiler options (Lazarus), but the size is still the same. >> Anything else I should do? > > Use > strip --strip-all $PR

Re: [fpc-pascal] Exe size

2008-09-04 Thread Michael Fuchs
Michael Fuchs schrieb: I'm testing with FPC/Lazrus on Windows now, but a simple program results in 11.5 MB size. I have enabled -Xs, -CX, -Og, -O2 in the project->compiler options (Lazarus), but the size is still the same. Anything else I should do? Use strip --strip-all $PROGRAMNAME.exe

Re: [fpc-pascal] Exe size

2008-09-04 Thread Michael Fuchs
Paul schrieb: I'm testing with FPC/Lazrus on Windows now, but a simple program results in 11.5 MB size. I have enabled -Xs, -CX, -Og, -O2 in the project->compiler options (Lazarus), but the size is still the same. Anything else I should do? Use strip --strip-all $PROGRAMNAME.exe after

Re: [fpc-pascal] Re: How to initialize thread vars?

2008-09-04 Thread Michael Van Canneyt
On Thu, 4 Sep 2008, "Vinzent Höfler" wrote: > Hi, > > > I think that thread variables are automatically initialized to zero. So > > you just need to use them in such a way that zero is the desired start > > value. > > Hmm, yes. I just checked the sourcecode and indeed, for Win32 and Unix at >

[fpc-pascal] Exe size

2008-09-04 Thread Paul
I'm testing with FPC/Lazrus on Windows now, but a simple program results in 11.5 MB size. I have enabled -Xs, -CX, -Og, -O2 in the project->compiler options (Lazarus), but the size is still the same. Anything else I should do? Paul ___ fpc-pascal

Re: [fpc-pascal] Re: How to initialize thread vars?

2008-09-04 Thread Vinzent Höfler
Hi, > I think that thread variables are automatically initialized to zero. So > you just need to use them in such a way that zero is the desired start > value. Hmm, yes. I just checked the sourcecode and indeed, for Win32 and Unix at least the threadvars are indeed initialized to zero. That woul

[fpc-pascal] ibase60.inc

2008-09-04 Thread Dimitrios Chr. Ioannidis
Hi, is it possible someone to add support for OS X in ibase60.inc ? Firebird for OS X is working fine for quite some time now. Something like ( didn't test it ) {$IFDEF Unix} {$DEFINE extdecl:=cdecl} {$IFDEF Darwin} const gdslib = 'libfbclient.dylib'; fbclib = 'libfbclien

[fpc-pascal] Re: How to initialize thread vars?

2008-09-04 Thread Tobias Giesen
Hi, I think that thread variables are automatically initialized to zero. So you just need to use them in such a way that zero is the desired start value. Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepasca

Re: [fpc-pascal] Blog system written in Pascal

2008-09-04 Thread Michael Van Canneyt
On Thu, 4 Sep 2008, ik wrote: > On Thu, Sep 4, 2008 at 12:38 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > > > > > > On Thu, 4 Sep 2008, ik wrote: > > > >> Hi, > >> > >> Out of pure curiosity, are there any blog systems written using Pascal > >> (FPC) ? > > > > The Morfik Blog demo is

[fpc-pascal] How to initialize thread vars?

2008-09-04 Thread Vinzent Höfler
Hi, suppose I need some threadvars inside dynamically allocated objects to keep track of the number of calls to certain methods. Basic requirement is to keep track of recursive calls per thread, so I tried implementing that with thread vars. Only problem: How do I initialize them? I can't do it

Re: [fpc-pascal] Blog system written in Pascal

2008-09-04 Thread ik
On Thu, Sep 4, 2008 at 12:38 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > On Thu, 4 Sep 2008, ik wrote: > >> Hi, >> >> Out of pure curiosity, are there any blog systems written using Pascal (FPC) >> ? > > The Morfik Blog demo is in FPC :-) Will they release their sources for that blog

Re: [fpc-pascal] Blog system written in Pascal

2008-09-04 Thread Michael Van Canneyt
On Thu, 4 Sep 2008, ik wrote: > Hi, > > Out of pure curiosity, are there any blog systems written using Pascal (FPC) ? The Morfik Blog demo is in FPC :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.or

Re: [fpc-pascal] Blog system written in Pascal

2008-09-04 Thread Graeme Geldenhuys
On 9/4/08, ik <[EMAIL PROTECTED]> wrote: > Hi, > > Out of pure curiosity, are there any blog systems written using Pascal (FPC) > ? I don't have a blog system, but I have a wiki system. :-) Regards, - Graeme - ___ fpGUI - a cross-platform Free P

[fpc-pascal] Blog system written in Pascal

2008-09-04 Thread ik
Hi, Out of pure curiosity, are there any blog systems written using Pascal (FPC) ? Thanks, Ido -- http://ik.homelinux.org/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal