question about arithmetic exceptions

Godmar Back gback@cs.utah.edu
Sat Nov 27 17:36:00 GMT 1999


> 
> Godmar Back <gback@cs.utah.edu> writes:
> 
> > As an aside, I find the way libgcc.a is built rather strange.
> > Does anybody know the motivation and/or history behind this highly 
> > unusual setup?
> 
> You mean the libgcc1 vs libgcc2 thing?
> 
> The ideas is that you would compile libgcc1 with the "vendor compiler",
> which would the generate the needed low-level code for things
> with division of longs (which on many systems is/was a library call).
> 
> You compile libgcc2 with gcc.
> 
> Then you put the two pieces together ...

I was wondering why it's all in one source file even though it's
compiled into different object files.  What's wrong with putting
each compilation unit in a separate source file.   Especially if
you consider that the only way in which most of the functions in 
libgcc2.c are related is that they're part of the run-time library.

	- Godmar



More information about the Java mailing list