This is the mail archive of the java@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]

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.


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