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


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

Re: Java compiler patch: compile resource files into executables


Zack wrote:
> This facility will be useful to programs written in other languages.
> Would you mind documenting the format of the .o file generated by gcj
> in this mode, so that a C program could make use of it?

Ok.  Where would you like to see these docs?  Comments in source?  Or texinfo?

It's basically a couple of unsigned longs followed by the resource name and
data.  The .o also contains a constructor function for calling
_Jv_RegisterResource with a pointer to this whole mess.  I plan to add a -z#
option to compress the resource data.  The java runtime change to support this
is trivial, and jc1 already links in zlib.

AG



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