This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


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

Re: Questions regarding submittals


At 09:04 PM 9/8/98 +0100, Joern Rennecke wrote:
>> I believe Mark needs to pass more information than is available in a
>> .file directive.
>
>Does he?  That's not how I have read his message.
>Mark, what information do you need to pass?

While it is true that all I require is the filename, MPE needs a complete
compilation unit entry in the SOM. 

The compilation unit is:

struct compilation_unit {
        union name_pt    name; 
        union name_pt    language_name; 
        union name_pt    product_id; 
        union name_pt    version_id; 
        union name_pt    copyright; 
        struct sys_clock compile_time; 
        struct sys_clock source_time; 
}; 

Since I must create the entire entry, it is best to make it mean something
legitimate, so I chose to include the compiler information and version in
the meta command as in:

; gcc_compiled.:
   .compiler "hello.c GNU_C_Compiler egcs-2.91.52 19980727 (gcc2 ss-980609
experimental)"

This yields:

/OFFICIAL/PUB/ODUMP -compunit ./a.out

Compilation Unit Dictionary from ./a.out[0]:

Index Chunk     Language                                    Name
        Product_id ; Version_id 
        Compile time ; Source time

   0   0  GNU_C_Compiler                                     hello.c        
                                                            
          GNU Tools; egcs-2.91.52 19980727 (gcc2 ss-980609 experimental) 
          Compile Time: None
          Source  Time: None

   1   0  GNU_C_Compiler                                     ./libgcc2.c    
                                                            
          GNU Tools; egcs-2.91.52 19980727 (gcc2 ss-980609 experimental) 
          Compile Time: None
          Source  Time: None

   2   0  GNU_C_Compiler                                     ./libgcc2.c    
                                                            
          GNU Tools; egcs-2.91.52 19980727 (gcc2 ss-980609 experimental) 
          Compile Time: None
          Source  Time: None

   3   0  GNU_PA-RISC_Assembler                              lib2funcs.asm  
                                                            
          GNU Tools; 2.8.1 
          Compile Time: None
          Source  Time: None

   4   0  GNU_PA-RISC_Assembler                              mpebreak.asm   
                                                            
          GNU Tools; 2.8.1 
          Compile Time: None
          Source  Time: None

   5   0  HP C/XL                                            CSGLIB         
          ccxl options =  +O2 -Aa                           
          HP31506; HP C/iX Compiler Version A.04.50  
          Compile Time:  Mon Jul  8 12:05:47 1996 000000000
          Source  Time: None

   6   0  HP-C                                               exit           
          cc options =  +O2 -Aa                             
          HP92453-01; A.08.81 
          Compile Time:  Tue Jun 21 13:51:10 1994 000000000
          Source  Time:  Tue Jan 25 10:55:21 1994 000000000

[snip]

  52   0  HPUX Precision Architecture Assembler
MILLI/12.34/MremU.o

                                                            
          92453; A.08.00(sllic UX.08.00.00 10/25/89) 
          Compile Time: None
          Source  Time: None


/tmp(149): 

I'm not sure what would happen to MPE's tools if they found an incomplete
compilation
unit, but it is better to be complete, IMHO.
--
Mark Klein                                              DIS International,
Ltd.
http://www.dis.com                                      415-892-8400
PGP Public Key Available