[fpc-pascal] Hello,I suggest that you change the TFPGMap in fgl.

2016-07-17 Thread 김봄
if TFPGMap::Sorted is True, then Add method time complexity is O(n) and
Indexof,Find method is O(lg n).

or Sorted is False, then Add method is O(1) and Indexof,Find is O(n)

but, most language's map implementation is red/black tree or hashtable.

i don't know why free pascal's map is based on array.

if map implementation is hashtable or r/b tree, then Add,Indexof,Find
method have a
log or constant time complexity.

please, answer my suggestion.

sorry for my english.

sincerely.

==

yonsei univ. in korea, kimbom.

ᐧ
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] unable to compile 3.0.0 both Linux x86_64 and arm-linux

2016-07-17 Thread Jonas Maebe

On 16/07/16 16:20, Giuliano Colla wrote:

I'm using the top level Makefile, while buildin All. Everything else,
before that package, compiles properly (compiler, LCL, other packages,
etc.)
Should I locate something specific which might turn off FPC mode in the
affecting package Makefiles or fpmake or whatever, or in the upper
folder (packages)?


Try adding OPT=-va FPMAKEOPT=-v to the make invocation and check the 
output to see whether the compiler is picking up any extra configuration 
files or options somehow.



Jonas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Is there a way to interact with this list via the Web?

2016-07-17 Thread Vasudev Ram
Vasudev Ram  writes:

> 
> Thank you.
> 
> >>>
> >>> Is there a way to interact with this list via the Web?
> >
> > http://blog.gmane.org/gmane.comp.compilers.free-pascal.general
> >
> >
> > Jonas
> >
> 

Please ignore.

Testing posting to the list via the Gmane gateway.


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] unable to compile 3.0.0 both Linux x86_64 and arm-linux

2016-07-17 Thread Giuliano Colla

Il 17/07/2016 17:34, Jonas Maebe ha scritto:

Try adding OPT=-va FPMAKEOPT=-v to the make invocation and check the 
output to see whether the compiler is picking up any extra 
configuration files or options somehow. 


That's it! I had just pasted from the wiki page an extra fpc.cfg for 
cross compiling, and I had failed to notice that it had an extra -Sd 
added, which has nothing to do with cross-compiling, but which generates 
troubles around.

Thanks a lot for your help!

Giuliano

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] unable to compile 3.0.0 both Linux x86_64 and arm-linux

2016-07-17 Thread Jonas Maebe

On 17/07/16 19:50, Giuliano Colla wrote:

Il 17/07/2016 17:34, Jonas Maebe ha scritto:


Try adding OPT=-va FPMAKEOPT=-v to the make invocation and check the
output to see whether the compiler is picking up any extra
configuration files or options somehow.


That's it! I had just pasted from the wiki page an extra fpc.cfg for
cross compiling, and I had failed to notice that it had an extra -Sd
added, which has nothing to do with cross-compiling, but which generates
troubles around.


Could you edit that wiki page and remove the -Sd so other people won't 
run in the same problem? Thanks.



Jonas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] unable to compile 3.0.0 both Linux x86_64 and arm-linux

2016-07-17 Thread Giuliano Colla

Il 17/07/2016 20:01, Jonas Maebe ha scritto:

Could you edit that wiki page and remove the -Sd so other people won't 
run in the same problem? Thanks. 


Done.

http://wiki.freepascal.org/Setup_Cross_Compile_For_ARM#Configure_Lazarus_for_cross_Compile

I was planning to edit this page when I was completely done, because 
many points are obsolete, but this clean up takes priority.


Giuliano

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] unable to compile 3.0.0 both Linux x86_64 and arm-linux

2016-07-17 Thread Giuliano Colla

Il 17/07/2016 20:01, Jonas Maebe ha scritto:

Could you edit that wiki page and remove the -Sd so other people won't 
run in the same problem? Thanks. 


Sorry, bad link.
That's the good one:

http://wiki.freepascal.org/Setup_Cross_Compile_For_ARM#Create_custom_fpc.cfg

Giuliano

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, I suggest that you change the TFPGMap in fgl.

2016-07-17 Thread leledumbo
> i don't know why free pascal's map is based on array.

Because the unit was meant mainly for testing the generics support and if
you read the line right before the unit clause:
https://github.com/graemeg/freepascal/blob/master/rtl/objpas/fgl.pp#L20

Still, there's no problem having array backed map, the convenience of map
data structure is still achieved, it's just the speed that matters.  Use
fcl-stl instead, it has gmap which is rbtree backed and ghashmap which is
hashtable backed.



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Hello-I-suggest-that-you-change-the-TFPGMap-in-fgl-tp5725729p5725736.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal