Re: [fpc-pascal] LowerCase vs. UnicodeLowerCase

2016-10-10 Thread LacaK
One problem is, that documentation of SysUtils.LowerCase is not correct regarding to System.LowerCase http://www.freepascal.org/docs-html/rtl/sysutils/lowercase.html : "... It is completely equivalent to the *lowercase function of the system unit*" But another problem, which I have pointed out

Re: [fpc-pascal] Smart Link definition ?

2016-10-10 Thread Jonas Maebe
LacaK wrote: > What is difference between "Link smart (-XX)" and "Smart linkable (-XC)" ? > -XC is by default off and corresponds to per unit {$SMARTLINK OFF/ON} ? -CX (not -XC) means "generate code that can be smart linked by the linker if you specify -XX while compiling a program that uses this

Re: [fpc-pascal] Smart Link definition ?

2016-10-10 Thread Jonas Maebe
fredvs wrote: > In ld doc: > http://sourceware.org/binutils/docs-2.16/ld/Options.html > > > => -X --discard-locals > Delete all temporary local symbols. For most targets, this is all local > symbols whose names begin with L. > > I gues

Re: [fpc-pascal] Using for-loop index variable after loop

2016-10-10 Thread Virgo Pärna
On Mon, 10 Oct 2016 14:07:35 +0200, Vojtěch Čihák wrote: >       then Break; >   Isn't leaving for loop with break only case, where loop variable will keep the value. Otherwise it is undefined. But it does make the code more confusing. -- Virgo Pärna virgo.pa...@mail.ee

Re: [fpc-pascal] Smart Link definition ?

2016-10-10 Thread LacaK
Hi, What is difference between "Link smart (-XX)" and "Smart linkable (-XC)" ? -XC is by default off and corresponds to per unit {$SMARTLINK OFF/ON} ? Does it means, that compiler/linker is trying "Link smart", but only units marked "Smart linkable" ? Which means, that when I use in my program S

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-10 Thread Michael Schnell
On 07.10.2016 17:19, Graeme Geldenhuys wrote: there goes my idea of using RPi's as small stand-alone servers. :-/ Pi 3 does feature a 64 Bit CPU. (AFAIK, no 64 Bit Linux for same, yet. BSD: no idea) -Michael ___ fpc-pascal maillist - fpc-pasca

Re: [fpc-pascal] Smart Link definition ?

2016-10-10 Thread fredvs
Huh, sorry, it is me again... About ld (the linker). In ld doc: http://sourceware.org/binutils/docs-2.16/ld/Options.html => -X --discard-locals Delete all temporary local symbols. For most targets, this is all local symbols whose names

Re: [fpc-pascal] Smart Link definition ?

2016-10-10 Thread fredvs
> Sorry, for the question, but is it really working for FPC+Lazarus? For Windows64+32, Linux64+32 it is working here perfectly. For FreeBSD, it is in discussion. ;-) > Yes just eating quite significant amount of RAM. Ooops, I did not knew this... Thanks for the tip. Fre;D - Many thank

Re: [fpc-pascal] Smart Link definition ?

2016-10-10 Thread fredvs
> It's done by the linker, but it is based on how the compiler > structures/annotates the code and data when you compile with -CX. OK, perfect. Many thanks. - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Smart-Link-definition-tp57264

Re: [fpc-pascal] Smart Link definition ?

2016-10-10 Thread leledumbo
> Sorry, for the question, but is it really working for FPC+Lazarus? Yes, links fine here, just eating quite significant amount of RAM. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Smart-Link-definition-tp5726480p5726515.html Sent from the Free Pascal - Gen

Re: [fpc-pascal] Smart Link definition ?

2016-10-10 Thread denisgolovan
Sorry, for the question, but is it really working for FPC+Lazarus? I mean FPC with smart-linking from trunk. Last time I tried, I could not complete full FPC and Lazarus rebuild. BR, Denis 10.10.2016, 18:03, "Jonas Maebe" : > On 10/10/16 16:25, fredvs wrote: >>  Does somebody know if smart-link

Re: [fpc-pascal] Smart Link definition ?

2016-10-10 Thread Jonas Maebe
On 10/10/16 16:25, fredvs wrote: Does somebody know if smart-link (-XX) is done by the compiler (fpc) or by the linker (ld) ? It's done by the linker, but it is based on how the compiler structures/annotates the code and data when you compile with -CX. Jonas

Re: [fpc-pascal] Using for-loop index variable after loop

2016-10-10 Thread Juha Manninen
On Mon, Oct 10, 2016 at 3:07 PM, Vojtěch Čihák wrote: > Hi, if you mean this: > ... Yes, that is one of them. The code does not make sense in any case, regardless of "i"'s value. Index for cActionListEditorUnknownCategory and cActionListEditorAllCategory differ. "i" cannot have both at the same t

Re: [fpc-pascal] Smart Link definition ?

2016-10-10 Thread fredvs
Hello. Could you, please, help me ? Does somebody know if smart-link (-XX) is done by the compiler (fpc) or by the linker (ld) ? Many thanks. Fre;D - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Smart-Link-definition-tp5726480p5726511

Re: [fpc-pascal] Using for-loop index variable after loop

2016-10-10 Thread Vojtěch Čihák
Hi, if you mean this:   function CategoryIndexOf(Name: String): Integer;   var     i: Integer;   begin     for i:= lstCategory.Items.Count-1 downto 0 do begin       if lstCategory.Items[i] = Name       then Break;     end;     Result := i;     if (i = lstCategory.Items.IndexOf(cActionListEditorUnk

Re: [fpc-pascal] Using for-loop index variable after loop

2016-10-10 Thread Jonas Maebe
Juha Manninen wrote on Mon, 10 Oct 2016: I have always avoided using a for-loop index variable after the loop. I thought its value can be unpredictable in some situations when the compiler reuses its register or memory etc. That is correct. The compiler, FPC 3.0, does not warn about it. I

[fpc-pascal] Using for-loop index variable after loop

2016-10-10 Thread Juha Manninen
I have always avoided using a for-loop index variable after the loop. I thought its value can be unpredictable in some situations when the compiler reuses its register or memory etc. I noticed the ActionListEditor in Lazarus sources has code that uses it after the loop. The compiler, FPC 3.0, does

Re: [fpc-pascal] Debian, Jessie, Linux64 failed to install FPC3.0 64bit

2016-10-10 Thread Zaher Dirkey
this one of mirrors i used ftp://gd.tuwien.ac.at/languages/pascal/fpc/dist/3.0.0/x86_64-linux/ On Mon, Oct 10, 2016 at 9:11 AM, Zaher Dirkey wrote: > Hi i tried to install FPC 64 but in Debian 64 bit but i feel it currpted, > i downloaded it from individual mirror but same. > It finished with s