[fpc-devel] Snapshot x86_64-linux is not valid

2014-02-16 Thread Dariusz Mazur
Hi snapshot fpc-2.7.1.x86_64-linux.tar.gz ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/x86_64-linux/fpc-2.7.1.x86_64-linux.tar.gz is not valid, build is from 4/1/2014 but packages 28/12/2013 and compiler complains Darek ___ fpc-devel

Re: [fpc-devel] Delphi XE2 uses FPC for iOS target

2011-08-12 Thread Dariusz Mazur
Even if KSD or now FireMonkey supports ARM Linux this does not mean anything for Android. While Android does support native Linux applications it does not have a X server. Currently the only possibility for this is to run a X server through a VNC viewer and thus you can not reproduce the usual

Re: [fpc-devel] Delphi XE2 uses FPC for iOS target

2011-08-12 Thread Dariusz Mazur
And more important for me: the same code I can use on several OS: Android, WebOs, Linux, Windows, .. iOs ( I hope that FPC will be able to crosscompile to iOs soon), server can be embedded or standalone This might not be possible from non Apple targets, because of Apple's licence restrictions

Re: [fpc-devel] Declare variables inside the code

2011-05-11 Thread Dariusz Mazur
W dniu 2011-05-11 11:39, Joerg Schuelke pisze: Am Wed, 11 May 2011 10:21:45 +0200 (CEST) schrieb mar...@stack.nl (Marco van de Voort): FPC is much lighter on that, and never runs constructors automatically. It only initializes some pointer values to NIL. So you'll have to explain that remark

Re: [fpc-devel] Android native application with local webserver

2011-04-14 Thread Dariusz Mazur
W dniu 2011-04-14 09:38, Michael Schnell pisze: On 04/13/2011 11:11 PM, dar...@emadar.com wrote: Hello I finish first stage to move my webapp as native Android application. Its consists one java file with declaration webWiew, and all rest, written in FPC, is build as library. Of course start

Re: [fpc-devel] Android native application with local webserver

2011-04-14 Thread Dariusz Mazur
W dniu 2011-04-14 11:35, Michael Schnell pisze: On 04/14/2011 10:36 AM, Dariusz Mazur wrote: Did you already succeed in managing the usual obstacles of this: creating timers, yes Great ! How ? What is the problem when pthreads works? notifying the main thread from worker threads, yes

Re: [fpc-devel] Android native application with local webserver

2011-04-14 Thread Dariusz Mazur
W dniu 2011-04-14 16:08, Michael Schnell pisze: On 04/14/2011 02:55 PM, Dariusz Mazur wrote: What is the problem when pthreads works? In fact this supposedly is a Lazarus LCL problem, so we might be in the wrong discussion group here, The LCL's Application object defines a main thread

Re: [fpc-devel] [PATCH] XMLCFG AnsiStringDOMString conversion

2010-11-05 Thread Dariusz Mazur
W dniu 2010-11-05 11:52, Felipe Monteiro de Carvalho pisze: On Thu, Nov 4, 2010 at 7:51 PM, Dariusz Mazurdar...@emadar.com wrote: then I have a question : how to change current code page I say wrong: how to change code page used to implicit conversion ansistring- wide string You shouldn't.

Re: [fpc-devel] [PATCH] XMLCFG AnsiStringDOMString conversion

2010-11-04 Thread Dariusz Mazur
W dniu 2010-11-03 23:50, Sergei Gorelkin pisze: dar...@emadar.com пишет: When I using xmlCfg unit i found problem with storing literals in arbitrary code page. XMLCfg perform automatic conversion with omit some chars. I've change it to use utf8string instead of. Maybe this patch will be

Re: [fpc-devel] [PATCH] XMLCFG AnsiStringDOMString conversion

2010-11-04 Thread Dariusz Mazur
W dniu 2010-11-04 17:44, Marco van de Voort pisze: In our previous episode, Dariusz Mazur said: interesting. Such patch will make all existing config files with non-ascii data unreadable. Today also. All nonasci charracter are translate to '?' during reading (implicit conversion

Re: [fpc-devel] TFPHashList (Was: Alternative parsers)

2010-10-23 Thread Dariusz Mazur
W dniu 2010-10-22 23:30, Florian Klämpfl pisze: Am 22.10.2010 23:17, schrieb Dariusz Mazur: full source in attachment (should I prepare it different?) The best would be a diff against compiler sources. OK. First I find better computing of hash. My is slight worse than current (but overall

Re: [fpc-devel] TFPHashList (Was: Alternative parsers)

2010-10-23 Thread Dariusz Mazur
W dniu 2010-10-23 23:04, Florian Klämpfl pisze: Second: when I review assembler list I've notice some strange lines (all optimizations are enabled): Which compiler version? 2.4.x? I think r15502 in trunk should fix this. 2.5.1 but older. Now I test from current. Its better (faster) but I

Re: [fpc-devel] TFPHashList (Was: Alternative parsers)

2010-10-22 Thread Dariusz Mazur
Benchmarking included 3*10^6 calls to Add and Find methods with the arguments of various lengths. Average string length 5 characters: ShortString: 1.15 s AnsiString: 1.56 s Average string length 45 characters: ShortString: 12.0 s AnsiString: 3.2 s I agree that the first case is more relevant

[fpc-devel] VAL behavior

2010-03-23 Thread Dariusz Mazur
Hi I found different behavior of VAL function under Delphi and FPC var i,io : integer begin val('9 ',ii,io); writeln(ii); writeln(io); end; Delphi set ii to 9, FPC set 0 (io is equal 2) is this bug? -- Darek ___ fpc-devel maillist

Re: [fpc-devel] VAL behavior

2010-03-23 Thread Dariusz Mazur
W dniu 2010-03-23 20:04, dmitry boyarintsev pisze: On Tue, Mar 23, 2010 at 6:50 PM, Dariusz Mazurdar...@emadar.com wrote: Delphi set ii to 9, FPC set 0 (io is equal 2) is this bug? Don't assume the value of ii (since it's invalid), if io 0 I don't ask about it. Only if this

Re: [fpc-devel] possible 'dynlibs' unit issue

2010-01-19 Thread Dariusz Mazur
W dniu 2010-01-19 13:53, Michael Van Canneyt pisze: On Tue, 19 Jan 2010, Daniël Mantione wrote: Op Tue, 19 Jan 2010, schreef Graeme Geldenhuys: Michael Van Canneyt wrote: Why should it be better ? It doesn't really matter anyway. PtrUInt has a larger range than PtrInt (allowing full

Re: [fpc-devel] possible 'dynlibs' unit issue

2010-01-19 Thread Dariusz Mazur
W dniu 2010-01-19 19:00, Daniël Mantione pisze: Op Tue, 19 Jan 2010, schreef Dariusz Mazur: Is this possible to forbid this at compile time? An easy solution is to wrap it inside a record. This is good practise as it prevents accidental bugs like accidentally writing parameters

[fpc-devel] [arm] tStream.position

2009-12-10 Thread Dariusz Mazur
Hi there is problem with something like that var ts : tStream; begin ts:=tStream.create; ts.position:=2; // here arm write ERange Error // on trace setPosition // is very big number, like 153000 ts.free; end; platform : ARM with soft float -- Darek

Re: [fpc-devel] FPC on ARM

2009-12-08 Thread Dariusz Mazur
Michael Schnell pisze: Dariusz Mazur wrote: My application small part of my web based ERP application; From compiler side use: uclibc,... So I suppose this is on Linux, not WinCE ? beautiful !!! Great ! Thanks for letting us know. Did you try to use an IDE

[fpc-devel] FPC on ARM

2009-12-07 Thread Dariusz Mazur
Hi Now I finished porting my small app to this arm board: http://www.sklep.propox.com/show.php?g=2118szr=800wys=599p=05ce82c249a24e23bb597b9f80a258da25478 this consist: ARM926-EJ AT91SAM9260 (AT91SAM9G20) 64MB SDRAM 4GB i NAND Flash Ethernet PHY 10/100Mbit My application small part of my

Re: [fpc-devel] change default start function in cprt0.o

2009-12-05 Thread Dariusz Mazur
Jonas Maebe pisze: On 04 Dec 2009, at 17:51, Dariusz Mazur wrote: but now another problem linker say that system.pp need function _haltproc_eabi which is absent in ucprt.0 That's probably because nobody has maintained the uclibc support since adding EABI support. The ARM/Linux

Re: [fpc-devel] change default start function in cprt0.o

2009-12-05 Thread Dariusz Mazur
Florian Klaempfl pisze: Jonas Maebe schrieb: On 04 Dec 2009, at 17:51, Dariusz Mazur wrote: but now another problem linker say that system.pp need function _haltproc_eabi which is absent in ucprt.0 That's probably because nobody has maintained the uclibc support since adding

Re: [fpc-devel] ARM: problem with uses VFP instructions

2009-12-04 Thread Dariusz Mazur
Dariusz Mazur pisze: Jonas Maebe pisze: On 02 Dec 2009, at 15:17, Dariusz Mazur wrote: * __VFP_FP__ means that the floating point format in use is that of the ARM VFP unit, which is native-endian IEEE-754. * __MAVERICK__ means that the floating point format

[fpc-devel] change default start function in cprt0.o

2009-12-04 Thread Dariusz Mazur
Hi next problem with use uclibc cprt0.o need _libc_start_main but inn uclibc _uClibc_main is used how to change it prepare new cprt0.as ? -- Darek ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] change default start function in cprt0.o

2009-12-04 Thread Dariusz Mazur
Jonas Maebe pisze: On 04 Dec 2009, at 11:00, Dariusz Mazur wrote: next problem with use uclibc cprt0.o need _libc_start_main but inn uclibc _uClibc_main is used how to change it prepare new cprt0.as ? I think the compiler is supposed to use ucprt0.as when you compile against uclibc

Re: [fpc-devel] ARM: problem with uses VFP instructions

2009-12-02 Thread Dariusz Mazur
Jonas Maebe pisze: On 02 Dec 2009, at 00:23, Dariusz Mazur wrote: HI I try to crosscompile for arm (uclibc and eabi). Source and listing error below. But when I remove dynlibs form uses section, all goes OK When I check link.res only few things are changed in section input prt0-cprt0.o

Re: [fpc-devel] error when crosscompile for arm

2009-12-02 Thread Dariusz Mazur
Jonas Maebe pisze: On 02 Dec 2009, at 00:15, Dariusz Mazur wrote: Jonas Maebe pisze: On 30 Nov 2009, at 23:47, Dariusz Mazur wrote: Is this possible to add special directive, that left the same behavior of comp under arm? or any other hack? Only a hardware hack

Re: [fpc-devel] error when crosscompile for arm

2009-12-02 Thread Dariusz Mazur
Jonas Maebe pisze: On 02 Dec 2009, at 16:19, Dariusz Mazur wrote: Jonas Maebe pisze: On 02 Dec 2009, at 00:15, Dariusz Mazur wrote: Jonas Maebe pisze: or compiler can use comp internal as int64 and external as real. That would result in precision loss. Why. comp is 8 byte wide

Re: [fpc-devel] ARM: problem with uses VFP instructions

2009-12-02 Thread Dariusz Mazur
Jonas Maebe pisze: On 02 Dec 2009, at 15:17, Dariusz Mazur wrote: * __VFP_FP__ means that the floating point format in use is that of the ARM VFP unit, which is native-endian IEEE-754. * __MAVERICK__ means that the floating point format is that of the irrus Logic

Re: [fpc-devel] error when crosscompile for arm

2009-12-01 Thread Dariusz Mazur
Jonas Maebe pisze: On 30 Nov 2009, at 23:47, Dariusz Mazur wrote: Is this possible to add special directive, that left the same behavior of comp under arm? or any other hack? Only a hardware hack: solder an x87-fpu on your ARM processor and use that... This cannot be fixed in software

[fpc-devel] ARM: problem with uses VFP instructions

2009-12-01 Thread Dariusz Mazur
HI I try to crosscompile for arm (uclibc and eabi). Source and listing error below. But when I remove dynlibs form uses section, all goes OK When I check link.res only few things are changed in section input prt0-cprt0.o -crti.o What I should looking for. program hello; uses dynlibs,

[fpc-devel] error when crosscompile for arm

2009-11-30 Thread Dariusz Mazur
Hi I receive error while compile for arm selected processor does not support 'ldfd f0,[r11,#-48]' this is from simple function, but when I move them to main unit everything is compiled OK what does it mean? -- Darek ___ fpc-devel maillist -

Re: [fpc-devel] error when crosscompile for arm

2009-11-30 Thread Dariusz Mazur
Jonas Maebe pisze: On 30 Nov 2009, at 17:47, Dariusz Mazur wrote: I receive error while compile for arm selected processor does not support 'ldfd f0,[r11,#-48]' Add -Cfsoft to your compiler options to use softfloat instead of FPA. I've had this option enable this is from

Re: [fpc-devel] error when crosscompile for arm

2009-11-30 Thread Dariusz Mazur
this is from simple function, but when I move them to main unit everything is compiled OK what does it mean? I don't know why it doesn't happen in that case. If units I have compiler directive $E- (emulation of FPU) Is this still about moving the function to another

[fpc-devel] Source Code Optimization

2009-11-16 Thread Dariusz Mazur
Maybe it is something interesting http://www.linux-kongress.org/2009/slides/compiler_survey_felix_von_leitner.pdf -- Darek ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] [patch] tBits

2009-11-13 Thread Dariusz Mazur
Alexander Klenin pisze: 2009/11/11 Dariusz Mazur dar...@emadar.com: With this I have and question: For me function FindNextRaw should be in protected section But then we cant use them in enumerator, except when something like friend classes can be used in FPC. I only read about

Re: [fpc-devel] [patch] tBits

2009-11-13 Thread Dariusz Mazur
What should be done, to submit it to trunk? Usually using bug tracker. But submit what? New enumerators for TBits? Is yes then first let someone else decide (like Michael, Florian). Sorry for unclear ask. I don't need submit myself. I want to prepare good patch, which can be submit, but to

[fpc-devel] [patch] tBits

2009-11-11 Thread Dariusz Mazur
Hi Here is patch to tBits ans test program. Its repair FindnextBit. I also introduce FindNextRaw, based on it faster version FindNextBit can be done I can add: [code] function FindFirstBit; begin result:=findNextRaw(-1, state); end; function FindNextBit; begin result:=findNextRaw(findIndex,

Re: [fpc-devel] Forin feature with tBits

2009-11-07 Thread Dariusz Mazur
Alexander Klenin pisze: 2009/11/7 Dariusz Mazur dar...@emadar.com: If try to apply forin feature to tBits. But I have two problems 1. function FindFirstBit has bug [skipped] 2. findfirstbit is not multithread aware (because state is per object, not local) Yes

Re: [fpc-devel] New feature discussion: for-in loop

2009-10-21 Thread Dariusz Mazur
Micha Nelissen pisze: Michael Van Canneyt wrote: I see little gain in changing while Something(f) do F.Somethingelse This is not quite equal, it's more like: Start(f); while not Last(f) do F.DoWork; In your case, the function 'Something' must know about a generic F. why not

Re: [fpc-devel] New feature discussion: for-in loop

2009-10-21 Thread Dariusz Mazur
Paul Ishenin pisze: Marc Weustink wrote: I can see a use for using iterators in a for loop, however they should be declared with some keyword. Something like type TListIterator = iterator(TList, init_func, next_func, check_func) function init_func: Boolean; function next_func:

Re: [fpc-devel] New feature discussion: LAMBDA

2009-10-21 Thread Dariusz Mazur
Jeff Wormsley pisze: Michael Schnell wrote: Again something inspired by Delphi-Prism ? ( http://prismwiki.codegear.com/en/Lambda_Expressions ) Wow, talk about unreadable code... why all vote about something, that wasn't proposed ? -- Darek

[fpc-devel] New feature discussion: LAMBDA

2009-10-20 Thread Dariusz Mazur
Hi Based on discussion about for in I want to suggest my proposition. When we investigate some code, sometimes we found pattern: Pattern 1: / begin startfun; try ... finally stopfun; end; / end; Pattern 2: for i:= startfun to stopfun do begin end; Pattern 3:

Re: [fpc-devel] New feature discussion: LAMBDA

2009-10-20 Thread Dariusz Mazur
Michael Schnell pisze: Again something inspired by Delphi-Prism ? ( http://prismwiki.codegear.com/en/Lambda_Expressions ) No at all, I don't even see this before. I thing long about this. But lately I see this in C++ (strange) and Lisp (beautiful) In Prism have You: c - c.Name = 'Smith'

Re: [fpc-devel] New feature discussion: LAMBDA

2009-10-20 Thread Dariusz Mazur
++, which is imperative language , rather try to use some of the best of functional language. I don't even know, that it should be name lambda. Its similar to iterators, but also to aspect. It has the same syntax as properties. thats all. 2009/10/20 Dariusz Mazur dar...@emadar.com mailto:dar

Re: [fpc-devel] CGI/Command line/GUI all in one

2009-09-20 Thread Dariusz Mazur
Horacio Jamilis pisze: Dariusz Mazur escribió: Horacio Jamilis pisze: Dariusz Mazur escribió: This is not problem to have separate executable, only have one source to both GUI. I made program which can work as desktop and as web-based (FCGI or standalone web server) Each form is create

Re: [fpc-devel] CGI/Command line/GUI all in one

2009-09-18 Thread Dariusz Mazur
Horacio Jamilis pisze: Dariusz Mazur escribió: This is not problem to have separate executable, only have one source to both GUI. I made program which can work as desktop and as web-based (FCGI or standalone web server) Each form is create dynamical in runtime, source is one, but in compile

Re: [fpc-devel] CGI/Command line/GUI all in one

2009-09-18 Thread Dariusz Mazur
Marco van de Voort pisze: In our previous episode, Dariusz Mazur said: I want to move to FPC from delphi, but I see no viable alternative to Intraweb in FPC (and Lazarus). Indy don't work properly on linux, What's the problem? webserver was no stable, maybe something

Re: [fpc-devel] CGI/Command line/GUI all in one

2009-09-17 Thread Dariusz Mazur
Gilles MARCOU pisze: Hello, I'm trying to build an interface for a program so that it could be used as a command line, a GUI or a CGI. For the CGI, I use powutils 1.7.1, FPC 2.2.0 and Lazarus 0.9.24. I mean that the same executable should be used either as a CGI, a command line or a GUI.

Re: [fpc-devel] XML canonical

2009-08-31 Thread Dariusz Mazur
Sergei Gorelkin pisze: Dariusz Mazur wrote: I'd suggest you to find a test suite (some examples are contained directly in the text of w3.org specification, others may be ripped from opensource projects that support canonicalization, like libxml2) and verify your unit against it. I draw from

Re: [fpc-devel] DOM patch

2009-08-28 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Thu, 27 Aug 2009, Michael Van Canneyt wrote: On Thu, 27 Aug 2009, Dariusz Mazur wrote: Hi I use DOM from fcl-xml both for Delphi and FPC development. I work with older version, till I notice serious bugs. Today i've upgrade it from current svn

Re: [fpc-devel] DOM patch

2009-08-28 Thread Dariusz Mazur
- Using PtrInt for doing pointer math is discouraged in favor of PtrUInt; I've changed PtrInt do PtrUInt, but its not possible in each place how to resolve tClass= tClass(PtrUInt +ptrInt) FPC claim: combined unsigned and signed make result 64bit, which is incompatible with pointer

[fpc-devel] web site up-to-date

2009-08-28 Thread Dariusz Mazur
bugs on: http://www.freepascal.org/develop.var 1. (trunk - currently v2.3.x) should be 2.5.x 2. size of trunk: fpc.zip ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/source/fpc.zip (24 MB). should be 31MB 3.bottom site: Copyright Free Pascal team 1993-2007. should be 2009 -- Darek

Re: [fpc-devel] DOM patch

2009-08-28 Thread Dariusz Mazur
Jonas Maebe pisze: On 28 Aug 2009, at 13:10, Dariusz Mazur wrote: - Using PtrInt for doing pointer math is discouraged in favor of PtrUInt; I've changed PtrInt do PtrUInt, but its not possible in each place how to resolve tClass= tClass(PtrUInt +ptrInt) FPC claim: combined unsigned

[fpc-devel] XML canonical

2009-08-28 Thread Dariusz Mazur
Hi this is my first approach to implement canonical transform fromds:CanonicalizationMethod Algorithm=http://www.w3.org/TR/2001/REC-xml-c14n-20010315/ its used in XADES sign. can somebody review it, if its interesting -- Darek

Re: [fpc-devel] XML canonical

2009-08-28 Thread Dariusz Mazur
Sergei Gorelkin pisze: Dariusz Mazur wrote: I'd suggest you to find a test suite (some examples are contained directly in the text of w3.org specification, others may be ripped from opensource projects that support canonicalization, like libxml2) and verify your unit against it. I draw from

[fpc-devel] DOM patch

2009-08-27 Thread Dariusz Mazur
Hi I use DOM from fcl-xml both for Delphi and FPC development. I work with older version, till I notice serious bugs. Today i've upgrade it from current svn. And problem: Delphi don't compile I've made several changes in dom, xmlutil. Diff attached. As i expect, bugs in new version

[fpc-devel] XML canonical form

2009-08-12 Thread Dariusz Mazur
Hi Is any way to convert xml to canonical form when DOM is used -- Darek ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] big resource

2009-07-07 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Mon, 6 Jul 2009, Dariusz Mazur wrote: Michael Van Canneyt pisze: On Mon, 6 Jul 2009, Dariusz Mazur wrote: Michael Van Canneyt pisze: On Mon, 6 Jul 2009, Dariusz Mazur wrote: Hi I include res file to executed file. Res is compiled by brcc32 from RC

Re: [fpc-devel] big resource

2009-07-07 Thread Dariusz Mazur
Vincent Snijders pisze: Graeme Geldenhuys schreef: Dariusz Mazur wrote: I can make and upload more test, but which? Is there any chance to make patch to FPC 2.2.4 (its stable) Not likely. The fixes in resources are HUGE, and have not been merged to 2.2.4 for this reason. That's not good

Re: [fpc-devel] big resource

2009-07-07 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Mon, 6 Jul 2009, Dariusz Mazur wrote: Michael Van Canneyt pisze: On Mon, 6 Jul 2009, Dariusz Mazur wrote: Michael Van Canneyt pisze: On Mon, 6 Jul 2009, Dariusz Mazur wrote: Hi I include res file to executed file. Res is compiled by brcc32 from RC

[fpc-devel] compile resource

2009-07-07 Thread Dariusz Mazur
is possible to change which program is used to compile resource? is old and new version fpcres, FPC 2.2.4 should use old, FPC 2.3.1 new how achieve this ? -- Darek ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

[fpc-devel] big resource

2009-07-06 Thread Dariusz Mazur
Hi I include res file to executed file. Res is compiled by brcc32 from RC. Till now everything work OK. But when i try extract big PNG picture from RES I had wrong size of file. File has length 136303. When I read it from res length is 5321. This seems size of res is 16 bit. This is

Re: [fpc-devel] big resource

2009-07-06 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Mon, 6 Jul 2009, Dariusz Mazur wrote: Hi I include res file to executed file. Res is compiled by brcc32 from RC. Till now everything work OK. But when i try extract big PNG picture from RES I had wrong size of file. File has length 136303. When I read

Re: [fpc-devel] big resource

2009-07-06 Thread Dariusz Mazur
Michael Van Canneyt pisze: On Mon, 6 Jul 2009, Dariusz Mazur wrote: Michael Van Canneyt pisze: On Mon, 6 Jul 2009, Dariusz Mazur wrote: Hi I include res file to executed file. Res is compiled by brcc32 from RC. Till now everything work OK. But when i try extract big PNG picture from

Re: [fpc-devel] path for *.res file

2009-05-23 Thread Dariusz Mazur
Jonas Maebe pisze: On 23 May 2009, at 11:05, Vincent Snijders wrote: Can't the searching be extended to the unit directory. It would make the file C:\fpc\2.2.4\units\i386-win32\fcl-base\fclel.res really useful, now have to copy it to my program dir to be able to use deamonapp unit. WDDD?

[fpc-devel] path for *.res file

2009-05-22 Thread Dariusz Mazur
Hi How to tell compiler where are *.res files. I've try -Fu, -Fi, -Fo directives in fpc.cfg but always path of main source is used. -- Darek ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

[fpc-devel] runtime error 216 on nested procedures

2009-05-04 Thread Dariusz Mazur
Hi I have problem with this small program below. I've compiled if on Linux/i386 FPC 2.2.2 Every time of run program halt with runtime. I've test it with short and ansistring. Result the same. But when I uncomment line with test2 everything goes OK. Is something wrong with program? Can someone

[fpc-devel] test fpcres

2009-02-13 Thread Dariusz Mazur
Hi I've check tests for Test suite results for test file test/units/system/tres2.pp but I nottice that different fpcres is use to compile in trunk is ver 2.0{ Note: This program is not the old fpcres by Simon Kissel } but is use old : Log of 35027: Error: Unknown command-line

[fpc-devel] tNode.isequal optimization

2009-01-29 Thread Dariusz Mazur
Hi I've read some code of compiler (try to understand how it work) and I notice, that tNode.isequal is invoked very often but has not optimal (by me) implementation my proposition is (one assigned less): function tnode.isequal(p : tnode) : boolean; begin if assigned(self) then

Re: [fpc-devel] SSE in FPC

2008-11-30 Thread Dariusz Mazur
Jonas Maebe pisze: Of course tSSEVector should be declared in System unit. Then any one can use SSE intentionally Why can't you now? It's not like multiplication has any other meaning for arrays. And declaring magic compiler types in the system unit is something that should be avoided as

Re: [fpc-devel] SSE in FPC

2008-11-30 Thread Dariusz Mazur
Florian Klaempfl pisze: Dariusz Mazur schrieb: Jonas Maebe pisze: Of course tSSEVector should be declared in System unit. Then any one can use SSE intentionally Why can't you now? It's not like multiplication has any other meaning for arrays. And declaring magic compiler

Re: [fpc-devel] SSE in FPC

2008-11-30 Thread Dariusz Mazur
Florian Klaempfl pisze: Dariusz Mazur schrieb: Florian Klaempfl pisze: Dariusz Mazur schrieb: Jonas Maebe pisze: Of course tSSEVector should be declared in System unit. Then any one can use SSE intentionally Why can't you now? It's

Re: [fpc-devel] SSE in FPC

2008-11-29 Thread Dariusz Mazur
Florian Klaempfl pisze: Jonas Maebe schrieb: On 29 Nov 2008, at 11:11, Felipe Monteiro de Carvalho wrote: You can tell FPC to do the SSE code for you: -Cfx Select fpu instruction set to use, see fpc -i for possible values That only applies to (scalar) FPU operations

Re: [fpc-devel] SSE in FPC

2008-11-29 Thread Dariusz Mazur
Mattias Gaertner pisze: On Fri, 28 Nov 2008 21:25:16 +0100 darekm [EMAIL PROTECTED] wrote: Hi Are in FPC some instruction set contains streaming SIMD (SSE) like in GCC: http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/X86-Built_002din-Functions.html or in Microsoft Visual

[fpc-devel] membar instruction

2008-02-23 Thread Dariusz Mazur
Hi is there in FPC a membar instruction, like #StoreLoad macro or smp_mb(); and second need instruction is NOOP Darek ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] membar instruction

2008-02-23 Thread Dariusz Mazur
Micha Nelissen pisze: Dariusz Mazur wrote: Hi is there in FPC a membar instruction, like #StoreLoad macro or smp_mb(); ReadBarrier, ReadDependencyBarrier, ReadWriteBarrier, WriteBarrier; in system unit. thx and second need instruction is NOOP Don't know about this one

Re: [fpc-devel] membar instruction

2008-02-23 Thread Dariusz Mazur
Micha Nelissen pisze: Dariusz Mazur wrote: Don't know about this one, can't you use a do nothing loop? in spin-lock there is NOOP used, I think that is instruction, that every processor do nothing but not avoid (duration is very small but not zero) Why do you use a NOP

Re: [fpc-devel] LockFree Queue algorithm

2008-01-29 Thread Dariusz Mazur
Michael Schnell pisze: FUTEX is based on atomic operation, the same as I used. but with lockfree algorithms You don't protect access at all. I understand this, but I'm nut sure that this really is advantageous. Any atomic operation in a multicore system with a cache for each core imposes a

Re: [fpc-devel] LockFree Queue algorithm

2008-01-29 Thread Dariusz Mazur
Florian Klaempfl pisze: DarekM schrieb: Florian Klaempfl pisze: An if is unimportant, more important is the number of locked operations, especially on multi core systems they might eat hundreds of clock cycles. There are atomic operations, the should not eat much more than