comp.lang.ada
 help / color / mirror / Atom feed
* generation of map files
@ 2006-11-15 12:21 benmidgley
  2006-11-15 18:25 ` Andre
  0 siblings, 1 reply; 5+ messages in thread
From: benmidgley @ 2006-11-15 12:21 UTC (permalink / raw)


I would like to generate a map file as part of the link process on an
ada project. I am using the GCC toolset and would normally use -w1,-Map
when compiling C code. I understand that the build process is somewhat
different with ada but there must be some way of doing this for an ada
project. 

Can anyone advise?




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: generation of map files
  2006-11-15 12:21 generation of map files benmidgley
@ 2006-11-15 18:25 ` Andre
  2006-11-16 14:41   ` benmidgley
  0 siblings, 1 reply; 5+ messages in thread
From: Andre @ 2006-11-15 18:25 UTC (permalink / raw)



I always use:

    gnatmake foo.adb -largs -Xlinker -M

Andr�

benmidgley@googlemail.com wrote:
> I would like to generate a map file as part of the link process on an
> ada project. I am using the GCC toolset and would normally use -w1,-Map
> when compiling C code. I understand that the build process is somewhat
> different with ada but there must be some way of doing this for an ada
> project. 
> 
> Can anyone advise?
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: generation of map files
  2006-11-15 18:25 ` Andre
@ 2006-11-16 14:41   ` benmidgley
  2006-11-17 11:37     ` Stephen Leake
  0 siblings, 1 reply; 5+ messages in thread
From: benmidgley @ 2006-11-16 14:41 UTC (permalink / raw)





Andre wrote:
> I always use:
>
>     gnatmake foo.adb -largs -Xlinker -M
>
> André

That isnt working for me.... where would I find the map file ?

I also tried

gnatmake foo.adb -largs -Xlinker -Map,foo.map

without any success

>
> benmidgley@googlemail.com wrote:
> > I would like to generate a map file as part of the link process on an
> > ada project. I am using the GCC toolset and would normally use -w1,-Map
> > when compiling C code. I understand that the build process is somewhat
> > different with ada but there must be some way of doing this for an ada
> > project. 
> > 
> > Can anyone advise?
> >




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: generation of map files
  2006-11-16 14:41   ` benmidgley
@ 2006-11-17 11:37     ` Stephen Leake
  2006-11-17 21:36       ` Simon Wright
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Leake @ 2006-11-17 11:37 UTC (permalink / raw)


benmidgley@googlemail.com writes:

> Andre wrote:
>> I always use:
>>
>>     gnatmake foo.adb -largs -Xlinker -M
>>
>> Andr�
>
> That isnt working for me.... where would I find the map file ?
>
> I also tried
>
> gnatmake foo.adb -largs -Xlinker -Map,foo.map
>
> without any success

try "gnatmake -v" to show the actual gcc command issued; what does it show?

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: generation of map files
  2006-11-17 11:37     ` Stephen Leake
@ 2006-11-17 21:36       ` Simon Wright
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Wright @ 2006-11-17 21:36 UTC (permalink / raw)


Stephen Leake <stephen_leake@stephe-leake.org> writes:

> benmidgley@googlemail.com writes:
>> I also tried
>>
>> gnatmake foo.adb -largs -Xlinker -Map,foo.map
>>
>> without any success
>
> try "gnatmake -v" to show the actual gcc command issued; what does it show?

Actually I think you need to put the -v after -largs if you want
gnatlink to see it; here,


grendel:~/tmp simon$ gnatmake -f -v foo.adb

GNATMAKE GPL 2006 (20060522-34)
Copyright 1995-2006, Free Software Foundation, Inc.
gcc -c foo.adb
End of compilation
gnatbind -x foo.ali
gnatlink foo.ali


grendel:~/tmp simon$ gnatmake -f foo.adb -largs -v
gcc -c foo.adb
gnatbind -x foo.ali
gnatlink foo.ali -v

GNATLINK GPL 2006 (20060522-34)
Copyright 1995-2006, Free Software Foundation, Inc
gcc -c -gnatA -gnatWb -gnatiw -gnatws b~foo.adb
/opt/gnat-gpl-2006/bin/gcc b~foo.o ./foo.o -o foo -L./ -L/opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/ /opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/libgnarl.a /opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/libgnat.a -static-libgcc


grendel:~/tmp simon$ gnatmake -f foo.adb -largs -Wl,-v
gcc -c foo.adb
gnatbind -x foo.ali
gnatlink foo.ali -Wl,-v
collect2 version 3.4.6 for GNAT GPL 2006 (20060522) (Darwin/PowerPC)
/usr/bin/ld -arch ppc -dynamic -o foo -lcrt1.o -lcrt2.o -L./ -L/opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/ -L/opt/gnat-gpl-2006/bin/../lib/gcc/powerpc-apple-darwin7.4.1/3.4.6 -L/opt/gnat-gpl-2006/bin/../lib/gcc -L/opt/gnat-gpl-2006/bin/../lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/../../.. b~foo.o ./foo.o -v /opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/libgnarl.a /opt/gnat-gpl-2006/lib/gcc/powerpc-apple-darwin7.4.1/3.4.6/adalib/libgnat.a -lgcc -lgcc_eh -lSystem -lmx
Apple Computer, Inc. version cctools-590.23.2.obj~17


-largs -Xlinker -v gives the same result as -largs -Wl,-v


If you want a map, I think you need whatever your system's ld needs;
here, it would be -Wl,-M.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-11-17 21:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-15 12:21 generation of map files benmidgley
2006-11-15 18:25 ` Andre
2006-11-16 14:41   ` benmidgley
2006-11-17 11:37     ` Stephen Leake
2006-11-17 21:36       ` Simon Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox