This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [MinGW] RFC/RFA: Get Partial Stack Traces on Windows


On 6/27/06, Marco Trudel <mtrudel@gmx.ch> wrote:

Ah, yes. It works as long as I do not strip the final executable. What does -g do? jc1 only tells me "Generate debug information in default format" and the executables keep the same size as withhout -g...

"-g" asks the compiler to include debugging information that you can use in a debugger like GDB. You should compare the output (the "Hello.s" file) of these two commands:

 gcj -g -S Hello.java
 gcj -S Hello.java

to see the difference. GCC/MinGW uses the "stabs" debugging format
while GCC/Linux uses the DWARF-2 debugging format.

Since the debugging information maps programme instructions to
source files and line numbers, GCJ uses this information (via
addr2line) to show the source files and line numbers in an exception
stack trace.


Will it be slower?

As far as I know, no.


HTH,
Ranjit.

--
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA. Web: http://rmathew.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]