> 2013/9/24  <mingw.greatwolf@...>:
>> This is with:
>>
>> $ objdump.exe --version
>> GNU objdump (GNU Binutils) 2.23.51.20120804
>> Copyright 2012 Free Software Foundation, Inc.
>> This program is free software; you may redistribute it under the terms of
>> the GNU General Public License version 3 or (at your option) any later
>> version.
>> This program has absolutely no warranty.
>>
>>
>> Using the following command:
>>
>> gcc -Wall -pedantic -g -c example.o example.c
> here is missing -o before example.o ^
>> objdump.exe -d M intel -S example.o
> option M intel doesn't exists.
> 
>>
>> The above only shows the dissassembly but no corresponding source file
>> listing. Is this a bug with the port of objdump or what's the problem?
> 
> For me it works.
> 
> Kai

Thanks for the reply. I made a mistake with the commands above. Here's the 
corrected one I tested with:

   gcc -Wall -pedantic -O0 -g -c example.cpp -o example.o
   objdump -d -l -M intel -S example.o


I'm having trouble getting the intermixed source and assembly output as shown 
here:

     
http://stackoverflow.com/questions/1289881/using-gcc-to-produce-readable-assembly

Did you use any special switches or options to get it to work for you? I 
downloaded the latest 
available mingw32 revision here:

http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.1/32-bit/threads-win32/dwarf/

Retesting it with that toolchain didn't make any difference -- only dissembly + 
mangled symbol names 
are shown but no intermixed source in the listing.

Thanks


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to