assemble_external on .class files

Jeffrey A Law law@upchuck.cygnus.com
Sat May 22 14:23:00 GMT 1999


  In message < 4.1.19990520204749.00c7fa90@garfield.dis.com >you write:
  > External procedure labels need to be .IMPORTED before they can 
  > be used on my platform. Some of these are part of a dispatch table 
  > created from classes such as java::lang::Object. My first attempt at 
  > resolving this was to place an assemble_external() in layout_class(),
  > but that results in a lot of clutter with .IMPORT statements for a 
  > whole bunch of things that really are not referenced. I suppose this 
  > could be my brute force method, but I would prefer to only do the 
  > .IMPORT for referenced methods/classes.
I wouldn't worry about the extra .IMPORTs.  In fact, it's a little known
aspect of SOM that the assembler is responsible for _not_ adding an imported
symbol to the undefined symbols for a module if that symbol is not actually
referenced.

Jeff


More information about the Java mailing list