Hi Troy,
First, thanks for your help. I am sorry that I did not get to it promptly. But
I tried what you suggested and did not see any problem. The following is what I
did:
=============================
gcc -o Judy1LCheck Judy1LCheck.c -lJudy -lm
chmod +x Judy1LCheck
./Judy1LCheck
=============================
and the following is what I got:
=============================
wf...@styx:~/research/CodeLibrary/Judy/test$ ./Judy1LCheck
./Judy1LCheck -n1000000 -S0 -B64
./Judy1LCheck 64 Bit version
Total Pop Total Ins New Ins Total Del J1MU/I JLMU/I
1 1 1 0 24.000 24.000
2 2 1 0 12.000 20.000
3 3 1 0 13.333 18.667
4 4 1 0 10.000 22.000
5 5 1 0 11.200 17.600
6 6 1 0 9.333 20.000
7 8 2 1 12.571 17.143
8 10 2 2 11.000 23.000
10 13 3 3 8.800 18.400
12 16 3 4 10.000 21.333
14 20 4 6 8.571 18.286
17 25 5 8 10.824 22.118
21 32 7 11 8.762 17.905
25 40 8 15 10.240 20.160
30 50 10 20 8.533 16.800
37 63 13 26 17.730 24.865
45 79 16 34 14.578 22.933
56 100 21 44 14.571 22.000
69 126 26 57 15.072 22.841
85 158 32 73 16.847 22.212
106 200 42 94 17.057 23.094
132 251 51 119 15.333 22.303
165 316 65 151 14.885 23.079
206 398 82 192 14.874 23.417
258 501 103 243 14.481 23.938
323 631 130 308 13.969 24.495
405 794 163 389 14.341 25.363
508 1000 206 492 13.575 24.661
638 1259 259 621 12.564 24.502
801 1585 326 784 12.484 23.900
1006 1995 410 989 12.103 22.577
1265 2512 517 1247 11.725 21.932
1590 3162 650 1572 11.215 21.047
2000 3981 819 1981 10.680 20.200
2516 5012 1031 2496 10.191 19.577
3165 6310 1298 3145 9.850 19.152
3982 7943 1633 3961 9.569 18.809
5011 10000 2057 4989 9.494 18.719
6306 12589 2589 6283 9.673 18.852
7936 15849 3260 7913 12.424 20.384
9988 19953 4104 9965 17.902 23.239
12571 25119 5166 12548 20.481 24.280
15823 31623 6504 15800 19.951 24.057
19917 39811 8188 19894 18.888 23.840
25071 50119 10308 25048 18.825 24.658
31560 63096 12977 31536 19.484 26.403
39729 79433 16337 39704 20.161 28.115
50013 100000 20567 49987 19.831 28.884
62960 125893 25893 62933 18.488 28.409
79258 158489 32596 79231 15.814 26.429
99777 199526 41037 99749 13.894 24.879
125609 251189 51663 125580 12.548 23.621
158129 316228 65039 158099 11.707 22.524
199069 398107 81879 199038 11.111 21.463
250609 501187 103080 250578 10.659 20.521
315494 630957 129770 315463 10.239 19.766
397180 794328 163371 397148 9.819 19.304
500016 1000000 205672 499984 9.425 18.961
Judy1FreeArray = 9.425 Bytes/Index
JudyLFreeArray = 18.961 Bytes/Index
Passed JudyL and Judy1 tests
=============================
What does this suggest in terms of the problem I am facing with the mex
compilation? Could you elaborate more?
Thanks.
Best Regards,
Wei
>>> Troy Heber <[email protected]> 9/18/2009 10:55 AM >>>
On 09/18/09 10:40, Wei Feng wrote:
> BTW, when I said I did not intentionally specify -shared option, I mean I did
> not type in the g++ command. It was generated by the mex command that I used:
> ===================
> mex -g -v -largeArrayDims -I/usr/include -L/usr/lib -lJudy
> mex_test_cir_map_target.cpp ...
> ===================
With out a copy of your code it is hard to guess. I have attached a
copy of the Judy1LCheck.c file from the Judy source. Can you compile
this as a simple test using:
gcc -o Judy1LCheck Judy1LCheck.c -lJudy -lm
You should then be able to run the resulting binary "Judy1LCheck".
Please let us know the results from this simple test.
Thanks,
Troy
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel