 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
A Programmer Guest
|
Posted: Sat Oct 29, 2005 4:56 am Post subject: Performance Bottlenecks |
|
|
I've been looking at the Borland groups for some time, but what drawed
me to this specfic forum was all the Fastcode stuff going on, which I
find interesting for several reasons based on my own project I have
going on now.
So in terms of looking at some of the code, I'm wondering something.
What is generally best to try for something generic that you want to
work in every environment you work on (i.e. portability concerns)? I
guess I'm asking "How does one select which routine(s) you want to try
out?"
Another side question: If I wanted to try to contribute some input
(there are a couple of the categories I saw on the list that I've had
some extensive testing myself for the project above), how would I do
that? Just posting here? I'm not interested in a "contest" or
anything like that, just looking for intellectual enlightenment and
contribution, more or less. Hopefully I can be of some help
somewhere.
|
|
| Back to top |
|
 |
Lars G Guest
|
Posted: Sat Oct 29, 2005 2:42 pm Post subject: Re: Performance Bottlenecks |
|
|
A Programmer wrote:
| Quote: |
So in terms of looking at some of the code, I'm wondering something.
What is generally best to try for something generic that you want to
work in every environment you work on (i.e. portability concerns)? I
guess I'm asking "How does one select which routine(s) you want to try
out?"
|
If you select the RTL Replacement winners you will be safe ;-)
but at the moment the fastcode have a small problem the library is
in a bad state.
Try to look at the Direct Calling Libraries
http://fastcode.sourceforge.net/fastcodeproject/55.htm
| Quote: | Another side question: If I wanted to try to contribute some input
(there are a couple of the categories I saw on the list that I've had
some extensive testing myself for the project above), how would I do
that? Just posting here? I'm not interested in a "contest" or
anything like that, just looking for intellectual enlightenment and
contribution, more or less. Hopefully I can be of some help
somewhere.
|
Not sure i understand you ...
But if you have some test/validation we miss in some of the fastcode B&V
please post them here :-)
Regards
Lars G
|
|
| Back to top |
|
 |
A Programmer Guest
|
Posted: Sat Oct 29, 2005 4:38 pm Post subject: Re: Performance Bottlenecks |
|
|
It depends on whether I can make them work with Delphi 3 or not. Most
of the stuff I've encountered won't compile for various reasons (but
can be made to compile if the code doesn't use anything D3 supports).
I meant that I've done a lot of testing on sorts (R&D for various
projects of mine) and could maybe offer some insights on both code and
testing aspects. It looks like it's something that people are trying
to hammer out right now, so perhaps I can try to offer some input if I
have something relevant to say.
On Sat, 29 Oct 2005 16:42:55 +0200, Lars G <larsbg_remove_ (AT) gmail (DOT) com>
wrote:
| Quote: | If you select the RTL Replacement winners you will be safe ;-)
but at the moment the fastcode have a small problem the library is
in a bad state.
Try to look at the Direct Calling Libraries
http://fastcode.sourceforge.net/fastcodeproject/55.htm
Not sure i understand you ...
But if you have some test/validation we miss in some of the fastcode B&V
please post them here :-)
Regards
Lars G
|
|
|
| Back to top |
|
 |
Anders Isaksson Guest
|
Posted: Sat Oct 29, 2005 8:06 pm Post subject: Re: Performance Bottlenecks |
|
|
A Programmer wrote:
| Quote: | It depends on whether I can make them work with Delphi 3 or not.
|
Maybe you can get some help from the D5Support.pas I wrote, that is used at
least in the IntToStr B&V. In that file I've collected defines and
declarations of some of the things that are missing in D5. I suspect that
the same things are missing in D3 :-)
Maybe we should rename that file to 'LegacySupport.pas' and add D3 specific
defines and declarations too when we find them?
As for the contest/library functions you will have problems with many of the
assembler functions (later versions of Delphi add a lot of mnemonics which
are not availabel in our old beasts), plain Pascal versions should not be
impossible to get working under D3.
--
Anders Isaksson, Sweden
BlockCAD: http://web.telia.com/~u16122508/proglego.htm
Gallery: http://web.telia.com/~u16122508/gallery/index.htm
|
|
| Back to top |
|
 |
A Programmer Guest
|
Posted: Sun Oct 30, 2005 1:24 am Post subject: Re: Performance Bottlenecks |
|
|
It will help. The major problem though to get around for D3 is that
there's no such critter as Int64. D3 is still very Borland Pascal
legacy in that way. D3 does support DWord, but you need the Windows
unit for that to happen (at a huge cost of memory and exec size).
I can always post lists of compiler errors if people are interested in
a "legacy D3" support.
On Sat, 29 Oct 2005 22:06:26 +0200, "Anders Isaksson"
<blockcad (AT) REMOVEgmail (DOT) com> wrote:
| Quote: | A Programmer wrote:
It depends on whether I can make them work with Delphi 3 or not.
Maybe you can get some help from the D5Support.pas I wrote, that is used at
least in the IntToStr B&V. In that file I've collected defines and
declarations of some of the things that are missing in D5. I suspect that
the same things are missing in D3 :-)
Maybe we should rename that file to 'LegacySupport.pas' and add D3 specific
defines and declarations too when we find them?
As for the contest/library functions you will have problems with many of the
assembler functions (later versions of Delphi add a lot of mnemonics which
are not availabel in our old beasts), plain Pascal versions should not be
impossible to get working under D3.
|
|
|
| Back to top |
|
 |
A Programmer Guest
|
Posted: Wed Nov 16, 2005 3:39 am Post subject: Backwards Compatibility |
|
|
On Sat, 29 Oct 2005 22:06:26 +0200, "Anders Isaksson"
<blockcad (AT) REMOVEgmail (DOT) com> wrote:
| Quote: | Maybe we should rename that file to 'LegacySupport.pas' and add D3 specific
defines and declarations too when we find them?
|
If you are interested, I can most definitely post any and all compiler
messages for whatever it is if people are willing to look into it:
In the meantime, I tried to compile FastMM446 with the Delphi 3
command-line compiler (so I could capture the messages).
Command used: dcc32 -cc fastmm4.pas
---------
Delphi for Win32 Version 10.0 Copyright (c) 1983,97 Borland
International
FastMM4.pas(1)
FastMM4Options.inc(64)
FastMM4Options.inc(275)
FastMM4.pas(529) Error: Invalid compiler directive: 'WARN'
FastMM4.pas(597) Error: '[' expected but 'OF' found
FastMM4.pas(597) Error: Ordinal type required
FastMM4.pas(616) Error: 'OF' expected but 'FUNCTION' found
FastMM4.pas(616) Error: Data type too large: exceeds 2 GB
FastMM4.pas(616) Error: ';' expected but ')' found
FastMM4.pas(644) Error: Unknown directive: 'overload'
FastMM4.pas(645) Error: Declaration of 'RegisterExpectedMemoryLeak'
differs from previous declaration
FastMM4.pas(645) Error: ')' expected but ';' found
FastMM4.pas(646) Error: Declaration of 'RegisterExpectedMemoryLeak'
differs from previous declaration
FastMM4.pas(646) Error: ')' expected but ';' found
FastMM4.pas(648) Error: Unknown directive: 'overload'
FastMM4.pas(649) Error: Declaration of 'UnregisterExpectedMemoryLeak'
differs from previous declaration
FastMM4.pas(649) Error: ')' expected but ';' found
FastMM4.pas(650) Error: Declaration of 'UnregisterExpectedMemoryLeak'
differs from previous declaration
FastMM4.pas(650) Error: ')' expected but ';' found
FastMM4Messages.pas(1)
FastMM4Options.inc(275)
FastMM4Messages.pas(56) Error: Number of elements differs from
declaration
FastMM4Messages.pas(135)
FastMM4.pas(663) Fatal: Could not compile used unit
'FastMM4Messages.pas'
------
FastMM3 and FastMM2 both had error messages. But like I mentioned, I
was able to figure out what to change to get FastMM3 to compile.
Anyway, here you go, if someone is willing to see what can be changed
in the D5Support.Pas that can help compile this (and other things).
|
|
| Back to top |
|
 |
Avatar Zondertau Guest
|
Posted: Wed Nov 16, 2005 10:44 am Post subject: Re: Backwards Compatibility |
|
|
| Quote: | Maybe we should rename that file to 'LegacySupport.pas' and add D3
specific defines and declarations too when we find them?
If you are interested, I can most definitely post any and all compiler
messages for whatever it is if people are willing to look into it:
In the meantime, I tried to compile FastMM446 with the Delphi 3
command-line compiler (so I could capture the messages).
Anyway, here you go, if someone is willing to see what can be changed
in the D5Support.Pas that can help compile this (and other things).
|
Would Delphi 3 support really be realistic? And would it really help
people?
I think differences between D3 and D5 are much larger than between D5
and D7. Delphi 3 lacked many language features (IIRC for example
dynamic arrays). These cannot be fixed by just including a unit.
We held a poll here before to which 51 people replied (probably BASM
and non-tech readers). Delphi 5 support turned out to be useful because
as many as 23 people were still actively using D5 (more than D2005!).
There were only 4 active D3 users, and these were probably only
maintaining old apps.
--
The Fastcode Project: http://www.fastcodeproject.org/
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|