This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Questions regarding submittals
- To: Joern Rennecke <amylaar at cygnus dot co dot uk>, law at cygnus dot com
- Subject: Re: Questions regarding submittals
- From: Mark Klein <mklein at dis dot com>
- Date: Tue, 08 Sep 1998 13:57:23 -0700
- Cc: amylaar at cygnus dot co dot uk, gas2 at cygnus dot com, egcs at cygnus dot com
- References: <2534.905246449@hurl.cygnus.com>
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