Is there a different behaviour on linux?
I guess there is no limit...(!?)
Am Donnerstag, 19. Mai 2016, 08:46:57 schrieb LacaK:
> >> another question: is there any limit in FPC, which causes that only cca
> >> 1GB of memory can be used by FPC ?
> >
> > No, but there is one that limits to 2GB.
>
>> Additionally, it's possible that it's not possible to inline
generic routines in regular routines,
>
> It is not my case.
> I use this generic in another generic and then it is specialized in
interface section of same unit.
>
> Later this specialized object is used in another class type,
Hm, I have checked in Lazarus on Project Options / Verbosity appropriate
-vd option, but in output window I do not see any more info ...
How should look such info message ?
Did you build your project clean?
Yes, I have used "Clean and build" option.
May be that this diagnostic messages are not
another question: is there any limit in FPC, which causes that only cca
1GB of memory can be used by FPC ?
No, but there is one that limits to 2GB.
Yes
With {$peflags $20} in the main file that is increasable to 3GB (reportedly 4GB
for 32-bits
apps under 64-bit windows, but I never tested
Tony Whyman wrote:
While the online documentation says a lot about tyepcasting PChars to
AnsiStrings, there seems to be nothing on the reverse.
You obviously meant the opposite. In any case, ansistring(pchar) results
in the same code as ansistring:=pchar, and results in a type conversion
tha
Am 18.05.2016 14:43 schrieb "LacaK" :
>> Additionally, it's possible that it's not possible to inline generic
routines in regular routines,
>
> It is not my case.
> I use this generic in another generic and then it is specialized in
interface section of same unit.
>
> Later this specialized object
Am 18.05.2016 15:13 schrieb "Marco van de Voort" :
>
> In our previous episode, Sven Barth said:
> > Yes, that might indeed be the most probable cause. That's something
that I
> > still need to fix in trunk, cause I really want inlining to work with
> > generic functions (with generic records and c
On 18/05/16 14:27, Jonas Maebe wrote:
s := string(Buf); {seems to work - but should it?}
end;
Why shouldn't it?
Because I couldn't find any documentation saying this should work and I
wasn't sure if this worked by luck or design.
To repeat what I said in about every message in the prev
On Wed, 18 May 2016 14:43:06 +0200
LacaK wrote:
>
> >
> >> Any other ideas, what leads compiler to not inline ?
> >
> > If you compile with -vd, the compiler will tell you in most cases why
> > it's not inlining.
> Hm, I have checked in Lazarus on Project Options / Verbosity appropriate
> -vd
Tony Whyman wrote on Wed, 18 May 2016:
I've been looking at some old code which still seems to work in fpc
3.0.0 - but is it safe? The code looks like:
{$mode delphi}
var Buf: PChar;
s: string;
begin
Buf := LoadString; {returns a pointer to an arbitrarily long null
terminated stri
In our previous episode, LacaK said:
> another question: is there any limit in FPC, which causes that only cca
> 1GB of memory can be used by FPC ?
No, but there is one that limits to 2GB.
With {$peflags $20} in the main file that is increasable to 3GB (reportedly 4GB
for 32-bits
apps under 64-
In our previous episode, Sven Barth said:
> Yes, that might indeed be the most probable cause. That's something that I
> still need to fix in trunk, cause I really want inlining to work with
> generic functions (with generic records and classes it should work if the
> specialization was done in the
On 2016-05-18 14:00, Graeme Geldenhuys wrote:
> If FCL doesn't include an implementation (my initial search of FPC 2.6.4
> shows NO), does anybody know of an Object Pascal implementation?
Scratch that, clearly my searching sucks! [case sensitivity] ;-) I
found the ascii85.pp unit in fcl-base.
Re
Hi,
Ascii85 - also known as Base85. It works similar to Base64, but where
Base64 increases the original data by 33% (four ASCII characters to
represent 3 bytes of data), Base85 only increases the original data by
20% (five ASCII characters to represent 4 bytes of data).
https://en.wikipedia.org
Hi again,
another question: is there any limit in FPC, which causes that only cca
1GB of memory can be used by FPC ?
I have program, which reads big XML file (cca 500MB) using TXMLDocument
class and attemot to expand it in memory ends with "Out of memory"
exception.
It is 32 bit program on 32
Any other ideas, what leads compiler to not inline ?
If you compile with -vd, the compiler will tell you in most cases why
it's not inlining.
Hm, I have checked in Lazarus on Project Options / Verbosity appropriate
-vd option, but in output window I do not see any more info ...
How should
Am 18.05.2016 13:29 schrieb "Jonas Maebe" :
>
>
> LacaK wrote on Wed, 18 May 2016:
>
>> Any other ideas, what leads compiler to not inline ?
>
>
> If you compile with -vd, the compiler will tell you in most cases why
it's not inlining. Additionally, it's possible that it's not possible to
inline ge
LacaK wrote on Wed, 18 May 2016:
Any other ideas, what leads compiler to not inline ?
If you compile with -vd, the compiler will tell you in most cases why
it's not inlining. Additionally, it's possible that it's not possible
to inline generic routines in regular routines, because IIRC th
In my case it is not virtual method.
But I forgot to mention, that it is method of generic object:
generic T2DArray = object
...
public
constructor Init(oobMode: TOutOfBoundsMode); overload;
constructor Init(x,y: integer); overload;
...
function Data(x,y: integ
On Wed, 18 May 2016, LacaK wrote:
In my case it is not virtual method.
But I forgot to mention, that it is method of generic object:
generic T2DArray = object
...
public
constructor Init(oobMode: TOutOfBoundsMode); overload;
constructor Init(x,y: integer); overload;
..
> > is it possible inline also methods of objects (not regular
procedures) ?
> > I have very simple class method, which call I need inline.
> > (looking at assembler code it is not inlined; I have looked also
in documentation, but I do not found article about inline and methods)
> >
> > Examp
LacaK wrote:
Hi *,
is it possible inline also methods of objects (not regular procedures) ?
I have very simple class method, which call I need inline.
(looking at assembler code it is not inlined; I have looked also in
documentation, but I do not found article about inline and methods)
Example
Am 18.05.2016 11:07 schrieb "Sven Barth" :
>
> Am 18.05.2016 10:06 schrieb "LacaK" :
> >
> > Hi *,
> > is it possible inline also methods of objects (not regular procedures) ?
> > I have very simple class method, which call I need inline.
> > (looking at assembler code it is not inlined; I have loo
Am 18.05.2016 10:06 schrieb "LacaK" :
>
> Hi *,
> is it possible inline also methods of objects (not regular procedures) ?
> I have very simple class method, which call I need inline.
> (looking at assembler code it is not inlined; I have looked also in
documentation, but I do not found article abo
I've been looking at some old code which still seems to work in fpc
3.0.0 - but is it safe? The code looks like:
{$mode delphi}
var Buf: PChar;
s: string;
begin
Buf := LoadString; {returns a pointer to an arbitrarily long null
terminated string}
s := string(Buf); {seems to work - b
Hi *,
is it possible inline also methods of objects (not regular procedures) ?
I have very simple class method, which call I need inline.
(looking at assembler code it is not inlined; I have looked also in
documentation, but I do not found article about inline and methods)
Example:
function T2
26 matches
Mail list logo