Sign in Join

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

Mailing lists / fpc-devel / 2009-04

fpc map file

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Paul Ishenin

Hello, FPC developers' list

I've found one interesting tool for delphi which I really want to have for lazarus and fpc: http://delphitools.info/samplingprofiler/

To work that tool uses map files which generates delphi. I contacted to author and asked him to add support for fpc. But there is one problem - fpc map files does not contains line info.

Here is small discussion with Sampling Profiler author I had: http://delphitools.info/forums/index.php?topic=13.0

Can fpc team extend output made by -Xm with line info?

Best regards,
Paul Ishenin.

Reply by email

Daniël Mantione
to Paul Ishenin

Op Sat, 18 Apr 2009, schreef Paul Ishenin:

Show quoted text 13 lines
Hello, FPC developers' list I've found one interesting tool for delphi which I really want to have for lazarus and fpc: http://delphitools.info/samplingprofiler/ To work that tool uses map files which generates delphi. I contacted to author and asked him to add support for fpc. But there is one problem - fpc map files does not contains line info. Here is small discussion with Sampling Profiler author I had: http://delphitools.info/forums/index.php?topic=13.0 Can fpc team extend output made by -Xm with line info?
Not if the GNU linker is used, which is the case for the majority of
platforms.

Check the lineinfo unit, it retrieves line number information from the debug information.

Daniël

Reply by email

Paul Ishenin
to Daniël Mantione
Daniël Mantione wrote
> Can fpc team extend output made by -Xm with line info? Not if the GNU linker is used, which is the case for the majority of platforms.

So -Xm is the same as ld -Map ? I thought -Xm map file is always fpc generated.

Check the lineinfo unit, it retrieves line number information from the debug information.

I suggested that to profiler developer.

Best regards,
Paul Ishenin.

Reply by email

Daniël Mantione
to Paul Ishenin

Op Sat, 18 Apr 2009, schreef Paul Ishenin:

Show quoted text 8 lines
Daniël Mantione wrote: >> Can fpc team extend output made by -Xm with line info? > > Not if the GNU linker is used, which is the case for the majority of > platforms. So -Xm is the same as ld -Map ? I thought -Xm map file is always fpc generated.

No, the compiler has no knowledge which symbol is placed in which object location, so it cannot generate a map file by itself (unless the internal linker is used).

Daniël

Reply by email

Bogusław Brandys
to Daniël Mantione

Daniël Mantione pisze:

Show quoted text 19 lines
Op Sat, 18 Apr 2009, schreef Paul Ishenin: > Daniël Mantione wrote: >>> Can fpc team extend output made by -Xm with line info? >> >> Not if the GNU linker is used, which is the case for the majority of >> platforms. > > So -Xm is the same as ld -Map ? I thought -Xm map file is always fpc > generated. No, the compiler has no knowledge which symbol is placed in which object location, so it cannot generate a map file by itself (unless the internal linker is used). Daniël

Does it mean that at least it could work with internal linker under windows ?

Boguslaw

Reply by email

Daniël Mantione
to Bogusław Brandys

Op Sat, 18 Apr 2009, schreef Bogus?aw Brandys:

Show quoted text 22 lines
Daniël Mantione pisze: > > > Op Sat, 18 Apr 2009, schreef Paul Ishenin: > >> Daniël Mantione wrote: >>>> Can fpc team extend output made by -Xm with line info? >>> >>> Not if the GNU linker is used, which is the case for the majority of >>> platforms. >> >> So -Xm is the same as ld -Map ? I thought -Xm map file is always fpc >> generated. > > No, the compiler has no knowledge which symbol is placed in which object > location, so it cannot generate a map file by itself (unless the internal > linker is used). > > Daniël > Does it mean that at least it could work with internal linker under windows ?

Yes, but with a strong accent on "could", because the work still would need to be done.

Daniël

Reply by email