How do I get a .s file assembled into libgcj?

David Daney ddaney@avtrex.com
Wed Aug 6 21:06:00 GMT 2003


I have hacked together some code that allows me to use SIGSEGV to 
generate NPEs for a mipsel-linux target (That part is nice).

The problem I have is that my current solution requires an assembly 
language source file and I cannot figure out how to adjust configure.in 
and/or Makefile.am for libjava so that the .s file is compiled from the 
source tree and then added to libgcj.{so|a}.

Any pointers or advice would be welcome.


As an alternative I could put the code in a C++ function using the asm() 
statement, but I would need some way to force the C++ compiler to always 
generate an identical stack frame layout no matter what optimization or 
code generation options were used.

If there is anybody out there that has any ideas about either of these 
points, I would appriciate any advise you would have to offer.

David Daney.



More information about the Java mailing list