Re: [fpc-pascal] optimised compiler options for "release" version

2009-06-09 Thread Graeme Geldenhuys
leledumbo wrote: > AFAIK only -CfSSE? and -Op??? that you have to worry. If you're not sure, > just use the lowest possible value (-CfX87 and -Op386). For optimizations, > even using -O3 is fine. Thanks. Do you know what exactly changes when you use various optimization options? Is it primarily e

Re: [fpc-pascal] sparse matrix storage method

2009-06-09 Thread Mehmet Erol Sanliturk
Alain Michaud wrote: Hi, would someone know of a procedure for solving a system of linear equations using a SPARSE MATRIX storage model. if one uses the usual: array [1..1;1..1] of "mostly_zeroes" then this is a really big waist of memory. I am thinking of using: Tlist instead,

[fpc-pascal] New to FPC: Printer problems

2009-06-09 Thread Tom Backer Johnsen
I have just recently downloaded FPC / Lazarus with the plan of porting some Delphi 7 programs (Windows XP). Then I am encountering some some errors where I thought was a trivial task. I want to print the contents of a plain text file to the default printer, adding some frills like page header

Re: [fpc-pascal] optimised compiler options for "release" version

2009-06-09 Thread Jonas Maebe
On 09 Jun 2009, at 09:24, Graeme Geldenhuys wrote: leledumbo wrote: AFAIK only -CfSSE? and -Op??? that you have to worry. -Op??? is no problem. It's -Cp that can generate code which won't run on previous-generation cpus. If you're not sure, just use the lowest possible value (-CfX87 and

Re: [fpc-pascal] optimised compiler options for "release" version

2009-06-09 Thread Graeme Geldenhuys
Jonas Maebe wrote: > > -Op??? is no problem. It's -Cp that can generate code which won't run on OK thanks. Seeing that I don't know the CPU's our program is deployed on, I'll rather stay safe. > very minor in most cases. Only -Cfsse2 sometimes produces a noticable > speedup on more recent proce

Re: [fpc-pascal] optimised compiler options for "release" version

2009-06-09 Thread Jonas Maebe
On 09 Jun 2009, at 11:48, Graeme Geldenhuys wrote: Thanks. Do you know what the 'PENTIUMM' cpu is? Is that Mobile Pentium or something? http://en.wikipedia.org/wiki/Pentium_M Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org ht

Re: [fpc-pascal] New to FPC: Printer problems

2009-06-09 Thread Felipe Monteiro de Carvalho
First include the package Printers4Lazarus as a requirement. Then you can write something like this: program printtest; {$mode objfpc}{$H+} uses Interfaces, // this includes the LCL widgetset Classes, Forms, Printer4Lazarus, Printers, PrintersDlgs; var PaperWorkRect: TRect; Pri

Re: [fpc-pascal] sparse matrix storage method

2009-06-09 Thread Tom Verhoeff
On Mon, Jun 08, 2009 at 03:28:50PM -0400, Alain Michaud wrote: > >would someone know of a procedure for solving a system of linear > equations using a SPARSE MATRIX storage model. > > if one uses the usual: array [1..1;1..1] of "mostly_zeroes" then > this is a really big waist of me

Re: [fpc-pascal] optimised compiler options for "release" version

2009-06-09 Thread Florian Klaempfl
Jonas Maebe schrieb: > > On 09 Jun 2009, at 11:48, Graeme Geldenhuys wrote: > >> Thanks. Do you know what the 'PENTIUMM' cpu is? Is that Mobile Pentium >> or something? > > http://en.wikipedia.org/wiki/Pentium_M Maybe the option should be renamed, it should be also used for Core processors. _

[fpc-pascal] Documentation for the UTF-8 Functions

2009-06-09 Thread David B Copeland
Can anyone point me to where the utf-8 functions are documented? I have tried looking in the docs for the RTL but could not find them. Thanks, Dave. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listin

[fpc-pascal] GtkBuilder

2009-06-09 Thread appletrain
Now that Glade 3.6 is out, is there any chance of implementing GtkBuilder in Free Pascal in lieu of libglade for Gtk development? Gary ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo

[fpc-pascal] About undocumented features

2009-06-09 Thread leledumbo
I just read the recent documentation and found some undocumented features, such as slice, strict, and dispinterface. Can anyone explain what they are? And are there any more than these 3? -- View this message in context: http://www.nabble.com/About-undocumented-features-tp23955603p23955603.html

Re: [fpc-pascal] About undocumented features

2009-06-09 Thread dmitry boyarintsev
> I just read the recent documentation and found some undocumented features, > such as slice, strict, and dispinterface. Can anyone explain what they are? > And are there any more than these 3? AFAIK, "slice" is delphi comatibility function. Here's the description: http://delphi.about.com/library/