Re: [fpc-pascal] code optimization

2010-09-21 Thread Adrian Veith
Hi Stefan, is this a benchmark program or a complex program you are talking about. If it is a benchmark, then it would be interesting to see the code, because from my experience I doubt that Delphi produces better code than fpc (in general it is the other way round). If it is a complex program, t

Re : [fpc-pascal] TEventLog.FileName location: Change default file location for filename without change unit code.

2010-09-21 Thread phoebus phoebus
Hi, Thanks Michael for the update. >> The default is just that, the default. If you specify a filename, then that >> is >>used. Yes, that's right. Thanks also jeff for the advise on Windows platform. Regards, Frphoebus ___ fpc-pascal maill

Re: [fpc-pascal] TEventLog.FileName location: Change default file location for filename without change unit code.

2010-09-21 Thread DaWorm
On Tue, Sep 21, 2010 at 9:39 AM, Michael Van Canneyt wrote: > begin >> Result:=ChangeFileExt(Paramstr(0),'.log'); >> end; >> > Function TEventLog.DefaultFileName : String; > On Windows, this can be problematic. Win7 for sure, usually Vista, and any version of Windows that has

[fpc-pascal] code optimization

2010-09-21 Thread stefan077
Hi all, I am currently trying to get the fastest possible code from fpc on a modern CPU (Intel Xeon) under Windows XP. I use the compiler options: fpc -Mdelphi -O3 -OpPENTIUMM -Cfsse2 -Cr- -Co- -CO- -Ci- myprogram.dpr Are there any better settings I should use? Compiling exactly the same p

Re: [fpc-pascal] TEventLog.FileName location: Change default file location for filename without change unit code.

2010-09-21 Thread Michael Van Canneyt
On Tue, 21 Sep 2010, phoebus phoebus wrote: Hi, I'm using FPC 2.2.4 with Lazarus. The unit eventlog is great for logging events. SO i use it.   My question is how to change the default location for the filename for Linxu ssytem which is harcoded in the code. The documentation for TEventLog

[fpc-pascal] TEventLog.FileName location: Change default file location for filename without change unit code.

2010-09-21 Thread phoebus phoebus
Hi, I'm using FPC 2.2.4 with Lazarus. The unit eventlog is great for logging events. SO i use it.   My question is how to change the default location for the filename for Linxu ssytem which is harcoded in the code. The documentation for TEventLog.FileName wrote: " FileName is the name of the log

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Michael Van Canneyt
On Tue, 21 Sep 2010, Adriaan van Os wrote: Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Florian Klaempfl wrote: Am 21.09.2010 13:42, schrieb Adriaan van Os: Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Adriaan van Os wrote: I am looking for a way to obtain the class hierarchy o

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Adriaan van Os
Sven Barth wrote: If I understood it right he wants the complete hierachy (or the complete class tree) which is used in a program. So the opposite of "ClassParent". Right. Regards, Adriaan van Os ___ fpc-pascal maillist - fpc-pascal@lists.freepas

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Adriaan van Os
Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Florian Klaempfl wrote: Am 21.09.2010 13:42, schrieb Adriaan van Os: Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Adriaan van Os wrote: I am looking for a way to obtain the class hierarchy of a program in MacPas mode (where there are no

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Sven Barth
Am 21.09.2010 13:49, schrieb Michael Van Canneyt: On Tue, 21 Sep 2010, Florian Klaempfl wrote: Am 21.09.2010 13:42, schrieb Adriaan van Os: Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Adriaan van Os wrote: I am looking for a way to obtain the class hierarchy of a program in MacPas m

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Michael Van Canneyt
On Tue, 21 Sep 2010, Florian Klaempfl wrote: Am 21.09.2010 13:42, schrieb Adriaan van Os: Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Adriaan van Os wrote: I am looking for a way to obtain the class hierarchy of a program in MacPas mode (where there are no published properties). TObj

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Michael Van Canneyt
On Tue, 21 Sep 2010, Adriaan van Os wrote: Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Adriaan van Os wrote: I am looking for a way to obtain the class hierarchy of a program in MacPas mode (where there are no published properties). TObject has ClassParent, so a list of Class types w

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Florian Klaempfl
Am 21.09.2010 13:42, schrieb Adriaan van Os: > Michael Van Canneyt wrote: >> >> >> On Tue, 21 Sep 2010, Adriaan van Os wrote: >> >>> I am looking for a way to obtain the class hierarchy of a program in >>> MacPas mode (where there are no published properties). TObject has >>> ClassParent, so a list

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Adriaan van Os
Michael Van Canneyt wrote: On Tue, 21 Sep 2010, Adriaan van Os wrote: I am looking for a way to obtain the class hierarchy of a program in MacPas mode (where there are no published properties). TObject has ClassParent, so a list of Class types would be sufficient, I think. I can't find howe

Re: [fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Michael Van Canneyt
On Tue, 21 Sep 2010, Adriaan van Os wrote: I am looking for a way to obtain the class hierarchy of a program in MacPas mode (where there are no published properties). TObject has ClassParent, so a list of Class types would be sufficient, I think. I can't find however a routine in the RTL to

[fpc-pascal] Obtain Class hierarchy (in MacPas mode)

2010-09-21 Thread Adriaan van Os
I am looking for a way to obtain the class hierarchy of a program in MacPas mode (where there are no published properties). TObject has ClassParent, so a list of Class types would be sufficient, I think. I can't find however a routine in the RTL to obtain such a list. Regards, Adriaan van Os _