[fpc-pascal] map file

2009-09-24 Thread Alexey Voytsehovich
Good day. Do not prompt way to generate map file with line numbers in source code? By analogy with Delphi. Since not get to the addresses in the Call Stack to get a line in the source code. Thanks in advance. P.S. Sorry for my English. -- Best regards, Alexey Voytsehovich

[fpc-pascal] options for better performance declaration of system procedures

2009-09-24 Thread 章宏九
Hi. I just tried to unfairly compare fpc-compiled binary and gcc-compiled binary under my Gentoo box. FPC is incredible. `ps` data shows the fpc one costs nearly no memory? But I still notice it is a little slow. It usually costs 0.5~1.0 time more than the gcc one. It seems as if fpc saves memory

Re: [fpc-pascal] map file

2009-09-24 Thread Jonas Maebe
On 24 Sep 2009, at 10:14, Alexey Voytsehovich wrote: Do not prompt way to generate map file with line numbers in source code? By analogy with Delphi. Since not get to the addresses in the Call Stack to get a line in the source code. Compile your program with -gl to get line numbers next

Re: [fpc-pascal] map file

2009-09-24 Thread Alexey Voytsehovich
Hello Jonas, Thursday, September 24, 2009, 11:33:29 AM, you wrote: On 24 Sep 2009, at 10:14, Alexey Voytsehovich wrote: Do not prompt way to generate map file with line numbers in source code? By analogy with Delphi. Since not get to the addresses in the Call Stack to get a line in the

Re: [fpc-pascal] map file

2009-09-24 Thread Joost van der Sluis
On Thu, 2009-09-24 at 11:14 +0300, Alexey Voytsehovich wrote: Do not prompt way to generate map file with line numbers in source code? By analogy with Delphi. Since not get to the addresses in the Call Stack to get a line in the source code. When you compile with debuginfo on, (-gl) then

Re: [fpc-pascal] options for better performance declaration of system procedures

2009-09-24 Thread Jonas Maebe
On 24 Sep 2009, at 10:31, 章宏九 wrote: I just tried to unfairly compare fpc-compiled binary and gcc-compiled binary under my Gentoo box. FPC is incredible. `ps` data shows the fpc one costs nearly no memory? The FPC run time library is much less extensive than the GNU C library (e.g., it

Re: [fpc-pascal] map file

2009-09-24 Thread Jonas Maebe
On 24 Sep 2009, at 10:37, Alexey Voytsehovich wrote: On 24 Sep 2009, at 10:14, Alexey Voytsehovich wrote: Do not prompt way to generate map file with line numbers in source code? By analogy with Delphi. Since not get to the addresses in the Call Stack to get a line in the source code.

Re: [fpc-pascal] options for better performance declaration of system procedures

2009-09-24 Thread 章宏九
2009/9/24 Jonas Maebe jonas.ma...@elis.ugent.be: On 24 Sep 2009, at 10:31, 章宏九 wrote: I just tried to unfairly compare fpc-compiled binary and gcc-compiled binary under my Gentoo box. FPC is incredible. `ps` data shows the fpc one costs nearly no memory? The FPC run time library is much

Re: [fpc-pascal] options for better performance declaration of system procedures

2009-09-24 Thread Joost van der Sluis
On Thu, 2009-09-24 at 16:31 +0800, 章宏九 wrote: Hi. I just tried to unfairly compare fpc-compiled binary and gcc-compiled binary under my Gentoo box. FPC is incredible. `ps` data shows the fpc one costs nearly no memory? But I still notice it is a little slow. It usually costs 0.5~1.0 time

Re: [fpc-pascal] options for better performance declaration of system procedures

2009-09-24 Thread Jonas Maebe
On 24 Sep 2009, at 10:53, 章宏九 wrote: 2009/9/24 Jonas Maebe jonas.ma...@elis.ugent.be: I would like also to know the situation in C. (I mean declaration of printf and scanf. Are they implemented in glibc or gcc?) In glibc. Unlike pascal? Yes and no. In both Pascal and C, the internal

Re: [fpc-pascal] map file

2009-09-24 Thread Alexey Voytsehovich
Hello Jonas, Thursday, September 24, 2009, 11:47:10 AM, you wrote: Runtime error 216 at $271C $271C $2744 $00024720 $26D0 $23E0 $1000 then you can look up the addresses in gdb: gdb my-program-compiled-with-g-and-not-stripped (gdb) info line

Re: [fpc-pascal] map file

2009-09-24 Thread Jonas Maebe
On 24 Sep 2009, at 10:59, Alexey Voytsehovich wrote: Yes, it looks like what I need. :) Another question, can I use gdb as a reference? That is, from the command line to send him a request and get an answer. To check each address automatically, but before work to run a script that will fill

Re: [fpc-pascal] map file

2009-09-24 Thread Jonas Maebe
On 24 Sep 2009, at 11:04, Jonas Maebe wrote: On 24 Sep 2009, at 10:59, Alexey Voytsehovich wrote: gdb testexcept.exe info line *0x004015c3 You should be able to do this: echo info line *0x004015c3 gdb.txt gdb -batch --command=gdb.txt Sorry, gdb testexcept.exe -batch --command=gdb.txt

Re: [fpc-pascal] map file

2009-09-24 Thread Alexey Voytsehovich
Hello Jonas, Thursday, September 24, 2009, 12:04:20 PM, you wrote: On 24 Sep 2009, at 10:59, Alexey Voytsehovich wrote: Yes, it looks like what I need. :) Another question, can I use gdb as a reference? That is, from the command line to send him a request and get an answer. To check each

Re: [fpc-pascal] options for better performance declaration of system procedures

2009-09-24 Thread 章宏九
Thank you very much. 2009/9/24 Jonas Maebe jonas.ma...@elis.ugent.be: On 24 Sep 2009, at 10:53, 章宏九 wrote: 2009/9/24 Jonas Maebe jonas.ma...@elis.ugent.be: I would like also to know the situation in C. (I mean declaration of printf and scanf. Are they implemented in glibc or gcc?) In

Re: [fpc-pascal] options for better performance declaration of system procedures

2009-09-24 Thread Marco van de Voort
In our previous episode, ? said: I just tried to unfairly compare fpc-compiled binary and gcc-compiled binary under my Gentoo box. FPC is incredible. `ps` data shows the fpc one costs nearly no memory? But I still notice it is a little slow. It usually costs 0.5~1.0 time more than the

[fpc-pascal] How to use var or object in a programm file from a unit file

2009-09-24 Thread yu ping
Program prog1 use unit1 myObj=class private public . end; --- unit unit1 .. like above, can i access myObj in unit1? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] How to use var or object in a programm file from a unit file

2009-09-24 Thread Michael Van Canneyt
On Thu, 24 Sep 2009, yu ping wrote: Program prog1 use unit1 myObj=class private public . end; --- unit unit1 .. like above, can i access myObj in unit1? No. A unit only has access to symbols that appear in units in it's uses clause. The program

[fpc-pascal] Compiling FPC itself with optimization

2009-09-24 Thread graemeg.lists
Hi, How optimized is FPC itself when I do a 'make all' in the source directory? No optimization, memory optimized, speed optimized, all of the above, etc.. Can I improve performance of the 64bit FPC compiler for my Quad Core processor? If so, what parameters do I pass to the make command?

Re: [fpc-pascal] Compiling FPC itself with optimization

2009-09-24 Thread Marco van de Voort
In our previous episode, graemeg.lists said: How optimized is FPC itself when I do a 'make all' in the source directory? No optimization, memory optimized, speed optimized, all of the above, etc.. Can I improve performance of the 64bit FPC compiler for my Quad Core processor? If so, what

Re: [fpc-pascal] Compiling FPC itself with optimization

2009-09-24 Thread graemeg.lists
2009/9/24 Marco van de Voort mar...@stack.nl: Which quad core? There are afaik at least four microarchitectures for x86_64 that have quadcores. I7, Core2 (depending on your viewpoint if that counts as a quadcore or a dual dualcore), Phenom and Phenom II. I don't know which model mine is. Here

Re: [fpc-pascal] Compiling FPC itself with optimization

2009-09-24 Thread Reimar Grabowski
On Thu, 24 Sep 2009 18:15:24 +0200 graemeg.lists graemeg.li...@gmail.com wrote: I don't know which model mine is. snip model name : Intel(R) Core(TM)2 Quad CPUQ9400 @ 2.66GHz Sometimes you are just too funny, Graeme. R. -- A: Because it messes up the order in which people

Re: [fpc-pascal] How to use var or object in a programm file from a unit file

2009-09-24 Thread Jeff Wormsley
yu ping wrote: Program prog1 use unit1 myObj=class private public . end; --- unit unit1 .. like above, can i access myObj in unit1? Much better to have something like this: Program prog1; uses CommonStuff, unit1; ..

Re: [fpc-pascal] Compiling FPC itself with optimization

2009-09-24 Thread Graeme Geldenhuys
2009/9/24 Reimar Grabowski reimg...@web.de: Sometimes you are just too funny, Graeme. :-) Does FPC actually differentiate optimization between Core2 vs i7 vs Phenom etc? Or does it group those into something like optimization level 3 (just an example) and detect currently used CPU itself (if

Re: [fpc-pascal] How to use var or object in a programm file from a unit file

2009-09-24 Thread yu ping
Thanks. another question,any one has successful compile indy on FPC? I tried,but did not success. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to use var or object in a programm file from a unit file

2009-09-24 Thread luca_manganelli
fpc-pascal-boun...@lists.freepascal.org scritti il 25/09/2009 05.34.53 Thanks. another question,any one has successful compile indy on FPC? I tried,but did not success. Indy 10? It's FPC compatible. Indy 9 not. ___ fpc-pascal maillist -