[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


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 Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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.org/mailman/listinfo/fpc-pascal


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 ?

>
> Michael.



Ido
-- 
http://ik.homelinux.org/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[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 from within the 
constructor, because it most probably runs in a different context. I can't do 
it from within the object itself, because any flag indicating that the thread 
vars are initialized would itself be required to be a thread var...

The only "clean" solution to me seems to hook the BeginThread routine of the 
thread manager, but I don't like that approach too much...

Perhaps someone has a smarter idea?


Regards,

Vinzent.
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 in FPC :-)
> 
> Will they release their sources for that blog ?

You can download it, even. But it's made in Morfik, and it will not work
with 'Just' FPC. FPC is used to compile the server part. The rest
(Pascal->Browser Javascript) is handled by the IDE.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[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.freepascal.org/mailman/listinfo/fpc-pascal


[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 = 'libfbclient.dylib';
  fbembedlib = 'libfbclient.dylib';
{$ELSE}
const
  gdslib = 'libgds.so';
  fbclib = 'libfbclient.so';
  fbembedlib = 'libfbembed.so';
{$ENDIF}
{$ENDIF}


Comments ?

Regards,
--
Dimitrios Chr. Ioannidis 
   
___

fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/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 would fit nicely here. ;)

If any of the developers could confirm, whether this is guaranteed semantics or 
was just a sane choice by the implementor? Because the documentation reads 
quite a bit differently:

 states:

"Note that the copy is made with the original value of the variable, not with 
the value of the variable at the time the thread is started."

Which doesn't make too much sense to me considering that I can't initialize 
thread vars at all (compiler complains: 'Cannot initialize variables declared 
as threadvar'). So what would this "original value" be (besides the obvious 
zero - which is the default value for all global variables)?


Vinzent.
-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[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 maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 
> least the threadvars are indeed initialized to zero. That would fit nicely 
> here. ;)
> 
> If any of the developers could confirm, whether this is guaranteed semantics 
> or was just a sane choice by the implementor? Because the documentation reads 
> quite a bit differently:
> 
>  states:
> 
> "Note that the copy is made with the original value of the variable, not with 
> the value of the variable at the time the thread is started."
> 
> Which doesn't make too much sense to me considering that I can't initialize 
> thread vars at all (compiler complains: 'Cannot initialize variables declared 
> as threadvar'). So what would this "original value" be (besides the obvious 
> zero - which is the default value for all global variables)?

The original value is zero.

Michael.___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

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 the compiling.

mfg
Michael
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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
after the compiling.


And if you want to shrink it more, try UPX.
http://upx.sourceforge.net/

mfg
Michael
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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
> after the compiling.

And if you want to shrink it more, try UPX.
http://upx.sourceforge.net/

mfg
Michael

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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-Pascal users discussions" 
Sent: Thursday, September 04, 2008 3:07 PM
Subject: Re: [fpc-pascal] Exe size



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
after the compiling.


And if you want to shrink it more, try UPX.
http://upx.sourceforge.net/

mfg
Michael
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 also, cause this what I actually want to do?


Don't know.

hth
Michael
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 $ELSE clause?
 
> Something like ( didn't test it )
 
> {$IFDEF Unix}
>{$DEFINE extdecl:=cdecl}
>{$IFDEF Darwin}
>  const
>gdslib = 'libfbclient.dylib';
>fbclib = 'libfbclient.dylib';
>fbembedlib = 'libfbclient.dylib';
>  {$ELSE}
>  const
>gdslib = 'libgds.so';
>fbclib = 'libfbclient.so';
>fbembedlib = 'libfbembed.so';
>  {$ENDIF}
> {$ENDIF}
> 
> 
> Comments ?
> 
> Regards,
> -- 
> Dimitrios Chr. Ioannidis 
> 
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 got "Oeps - debugger crash".

Ayway, the size was still 1116 kb for and empty program (button and a label) 
and the limit for my full program (Delphi) is 1 Mb

There's still a long way to go ..
For Windows, it's not a problem (Delphi program), but I want it for WinCE 
and I have the same restrictions there.



Paul



- Original Message - 
From: "Michael Fuchs" <[EMAIL PROTECTED]>

To: "FPC-Pascal users discussions" 
Sent: Thursday, September 04, 2008 3:20 PM
Subject: Re: [fpc-pascal] Exe size



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 also, cause this what I actually want to do?


Don't know.

hth
Michael
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 translation bug.
> 
> After compling, I got "Oeps - debugger crash".
> 
> Ayway, the size was still 1116 kb for and empty program (button and a
> label) and the limit for my full program (Delphi) is 1 Mb

So you get a 2 MB if you add two buttons and labels?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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.

After compling, I got "Oeps - debugger crash".

Ayway, the size was still 1116 kb for and empty program (button and a 
label) and the limit for my full program (Delphi) is 1 Mb

There's still a long way to go ..


This won't get smaller unless you use UPX. So maybe you need to search 
another tool or framework (KOL) if you want smaller size.


For Windows, it's not a problem (Delphi program), but I want it for 
WinCE and I have the same restrictions there.




You cannot have both: a small size without debug info *and* a working 
debugger.


So you have to make up your mind:
A: an executable that can be started with the debugger: enable the 
debugging options (-g or -gl) and disable stripping (-Xs) in the linking 
tab


or

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.


Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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:

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 got "Oeps - debugger crash".

Ayway, the size was still 1116 kb for and empty program (button and a
label) and the limit for my full program (Delphi) is 1 Mb


So you get a 2 MB if you add two buttons and labels?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 Line Numbers in
Run-time Error Backtraces). This will give the most tangible size
reduction compared to the options you have enabled.

-- 
Vladimir

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 really are
libfbclient.dylib, and not the ones from the $ELSE clause?


Well, let me do some tests and prepare patch, patch. But you're right,  
the gdslib and fbembedlib is wrong. Copy/paste error.


regards,

--
Dimitrios Chr. Ioannidis
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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, -O2 ), same result (also the debugger crash)

Paul

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 that and also (-Og, -O2 ), same result (also the debugger crash)


OK, you have a small size and a debuger crash. The debugger crash is ok, 
because you "do not need a working debugger".


Vincent
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 it's the same 
there: if the size is always the same, I can't use FPC/Lazarus.


UPX is not an option, because our package is already packed with the exe, 
dll's and other files and the package has to be < 1Mb

To have this, the program itself can have a max size of 1 MB.


Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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.

Alternatively, write your WinCE program in pure assembly language.
You should get fully function GUI apps at around 20-60 Kbytes.  :-)

Gibson Research has a template setup for you:
  http://www.grc.com/freepopular.htm

or for a more direct link
  http://www.grc.com/smgassembly.htm



Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 is rarely used, it's mostly running without GUI,

It has a pretty lage source code

Paul 


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 <[EMAIL PROTECTED]>
> Subject: Re: [fpc-pascal] Exe size
> To: "FPC-Pascal users discussions" 
> Date: Thursday, September 4, 2008, 4:03 PM
> 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
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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-calls ?

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 target, so if the particular API isn't supported for WinCE (as 
opposed to other WinXX platforms), it simply won't compile.

Tomas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


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 target, so if the particular API isn't supported for WinCE (as 
opposed to other WinXX platforms), it simply won't compile.




This is bad news for me, I need control over the computer.
The Windows version of the program uses a lot of api calls.
Seems my only option is use Visual Studio :-(

Paul
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal