This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
How do I get a .s file assembled into libgcj?
- From: David Daney <ddaney at avtrex dot com>
- To: java at gcc dot gnu dot org
- Date: Wed, 06 Aug 2003 14:06:11 -0700
- Subject: How do I get a .s file assembled into libgcj?
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.