1 / 11
Mar 2005

Why on Free Pascal it is possible to submit solutions, and on Delphi it is impossible? question frowning

I guess there are two things that can be called Delphi in a Linux environment - an Object Pascal compiler, and Kylix Delphi-compatible libraries from Borland (please correct me if I'm wrong). If I'm not mistaken, Gnu and Free Pascal implement a rich subset of Object Pascal.

Would it be sufficient if some of these switches were enabled? We would really like to avoid use of tools which are non-free for commercial applications (like Kylix), unless they prove superior.

27 days later

Thanks Adrian for Your interests in Delphi-users;)

I fully understand that You want to avoid non-free tools. Switches of FPC should be enough(for earlier versions). But I don't understand why we have to still use a 1.0.10 version... frowning It is obsolate and never versions have many improvements.
I feel that pascal-users are discriminated;( because we have to use the old version. C-users have the newest faster/better compilers. Why You do not upgrade FPC too? It has 1.9.8 version alredy.
For example it has supporting for dynamic-arrays(which are avalaible starting from Delphi 4) which I would like to use in solving problems, but I cant, because of lack of this enchantment in 1.0.10 version.

So, I think that installing never version of FPC on the server and switching Delphi-Switches;) should solve that problem..

Best Regards,

Marcin

We didn't intend to discriminate Pascal users, really smile
I'll upgrade fpc compiler to 1.9.6 tonight (or is 1.9.8 worth compiling it from sources instead of a clean Debian package?)

As of Delphi switches.. I'm a little worried they could break already accepted programs in pure Pascal (or can't they?) BTW, can't they be turned on with compiler directives in the source?

What do you Pascal-users think? smile Is fpc with Delphi switches on worth being a new "language" in spoj?

I am afraid that I am not a proper person to decide which version should be upgraded wink

If You want, check by yourself;)
ftp://ftp.freepascal.org/pub/fpc/beta/whatsnew.txt

For me every version higher or equal to 1.9.0(dynamic arrays) will be like a gift from a heaven;)

Its a mystery for me too. I'll try to ask or find some information about directives in documentation.

I am very greatfull for such quick answer;)

Best Regards,

Wodzu

-O2 -Xs -Sc -dONLINE_JUDGE

flags.

Update:
fpc has been downgraded from 1.9.6 to 1.9.4 because of problems with asm the former had.

Its still the same error. I tried to compile:

{$ASMMODE intel}
{$MODE delphi}
program cos;
function PosFastcodeRTL(const SubStr : AnsiString; const Str : AnsiString) : Integer;
asm
test eax, eax
end;
begin
end.

and i get:

Free Pascal Compiler version 1.9.6 [2005/01/14] for i386
Copyright (c) 1993-2004 by Florian Klaempfl
Target OS: Linux for i386
Compiling tested.pas
tested.pas(7,4) Fatal: Internal error 200410231
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specifiy a source file to be compiled)

So it is still wrong...

I guess it's the nature of a beta-version.. The latest stable fpc is 1.0.10.

I have to disagree.

1.0.10 is few years old and I read(on the fpc site) that any 1.9.x version is more stable then 1.0.10 ever was.

If You will have some spare time, plz try tu upgrade to 1.9.8. And if it will be still error, I will keep my mout shut;-)

Regards,

Marcin