Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-04

gprof win32

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Пётр Косаревский

How can one use gprof under win32?

While it is possible to download one or another gprof, fpc reports linking error: "ld.exe: cannot find -lc".

Reply by email

Пётр Косаревский
to Peter Vreman: gprof only works under cygwin Peter
Show quoted text 6 lines
At 09:54 17-4-2006, you wrote: >How can one use gprof under win32? >While it is possible to download one or another gprof, fpc reports linking >error: "ld.exe: cannot find -lc". gprof only works under cygwin Peter

Is there any common way of profiling under win32 with freepascal?

(One way is obvious: getting timestamps before/after long procedures, analyzing assembler output for little ones. But it's not an easy one.)

Reply by email

Пётр Косаревский
to Peter Vreman: Using gprof is the only way that fpc provides. Peter
Show quoted text 10 lines
> > >While it is possible to download one or another gprof, fpc reports > linking > > >error: "ld.exe: cannot find -lc". > > gprof only works under cygwin > > Peter >Is there any common way of profiling under win32 with freepascal? >(One way is obvious: getting timestamps before/after long procedures, >analyzing assembler output for little ones. But it's not an easy one.) Using gprof is the only way that fpc provides. Peter

So, if I install cygwin, will error disappear?

Reply by email

Peter Vreman
to Пётр Косаревский: Is there any common way of profiling under win32 with freepascal? (One way is obvious:…
you wrote 12 lines
> At 09:54 17-4-2006, you wrote: > >How can one use gprof under win32? > >While it is possible to download one or another gprof, fpc reports linking > >error: "ld.exe: cannot find -lc". > gprof only works under cygwin > Peter Is there any common way of profiling under win32 with freepascal? (One way is obvious: getting timestamps before/after long procedures, analyzing assembler output for little ones. But it's not an easy one.)

Using gprof is the only way that fpc provides.

Peter

Reply by email

Krishna
to Peter Vreman: gprof only works under cygwin Peter
Peter Vreman wrote 8 lines
At 09:54 17-4-2006, you wrote: >How can one use gprof under win32? > >While it is possible to download one or another gprof, fpc reports linking >error: "ld.exe: cannot find -lc". gprof only works under cygwin

I recently used it under MingW. The CodeBlocks IDE comes with it. The IDE also has a plugin to interpret the results. But mine was all C/C++ code. So, donno whether it works on code output by fpc.

http://codeblocks.org

Cheers,
Krishna

You think you know when you learn, are more sure when you can write, even more when you can teach, but certain when you can program - Alan Perlis

Reply by email