[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::decc

Title:DECC
Notice:General DEC C discussions
Moderator:TLE::D_SMITHNTE
Created:Fri Nov 13 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2212
Total number of notes:11045

2156.0. "C compiler query" by JAMSIE::CORBETT () Mon Apr 21 1997 07:09

When I compile with /LIST/DICTIONARY I expect
to obtain the listing of the common data dictionary 
in the .LIS file. Why do I not get it??

Daniel
T.RTitleUserPersonal
Name
DateLines
2156.1DECCXL::ZEEBJeff ZeebMon Apr 21 1997 10:379
If you compile with /LIST/DICTIONARY I would expect you to get

%DCL-W-IVQUAL, unrecognized qualifier - check validity, spelling, and placement
 \DICTIONARY\

as none of our C compiler support a /DICTIONARY qualifier.  Try
/LIST/SHOW=DICTIONARY instead.

Jeff
2156.2JAMSIE::CORBETTMon Apr 21 1997 10:5411
I just reported it wrongly. The full CC command is

cc/list/show=dictionary/nomemberalign/nodebug/opt/standard=vaxc/object=

on ALPHA and

the same on VAX. 

Neither gives me a list of the CDD.

Daniel
2156.3DECCXL::ZEEBJeff ZeebMon Apr 21 1997 14:3329
It works for me.  Here is an extract from the listing file
generated using /LIST/SHOW=DICT


              2 #dictionary  "C_TEST.GREAT_BRITAIN.SEVEN" null_terminate name(first)
     D1       3 /* CDD Path Name is "C_TEST.GREAT_BRITAIN.SEVEN" */
     D1       4 struct first
     D1       5 {
     D1       6     variant_union
     D1       7     {
     D1       8         char week [8];                                                  /* null terminated
text */
     D1       9         struct
     D1      10         {
     D1      11             char monday [2];                                            /* null terminated
text */
     D1      12             char tuesday [2];                                           /* null terminated
text */
     D1      13             char wednesday [2];                                         /* null terminated
text */
     D1      14             char thursday [2];                                          /* null terminated
text */
     D1      15             char friday [2];                                            /* null terminated
text */
     D1      16             char weekend [3];                                           /* null terminated
text */
     D1      17         } days;
     D1      18     } cc_cdd$_unnamed_1;
     D1      19 };
2156.4JAMSIE::CORBETTWed Apr 23 1997 06:0531
Hi Jeff

When I read DICTIONARY I expect at the end of the compilation listing
a complete definition of all symbols defined in the source module.

Below is a segment of code showing also the command, but no list of defined symbols.
What do I need to do to obtain the list of symbols and their definitions?




          12887
          12888 period *NextPeriod(in_file *in_file_ptr)
          12889 {
          12890         period *period_ptr;
          12891
          12892         period_ptr = (period *) g_data_ptr->current_period_ptr;
          12893         if((g_data_ptr->number_of_files > 1) || (in_file_ptr->no_periods > 0))
          12894                 period_ptr++;
          12895         g_data_ptr->current_period_ptr = (period *) period_ptr;
          12896         return(period_ptr);
          12897 }


Command Line
------- ----

CC/LIST/SHOW=DICTIONARY/NOMEMBERALIGN/DEBUG/NOOPT/STANDARD=VAXC/OBJECT=OVMS$EXE:
ELOG.DBJ OVMS$SOURCE:ELOG.C
                                                                                                                               
  
2156.5DECCXL::ZEEBJeff ZeebWed Apr 23 1997 14:4917
>When I read DICTIONARY I expect at the end of the compilation listing
>a complete definition of all symbols defined in the source module.

That is different from what you asked for in .0:

>When I compile with /LIST/DICTIONARY I expect
>to obtain the listing of the common data dictionary 
>in the .LIS file. Why do I not get it??

The Common Data Dictionary is a layered product, so that term has a
specific meaning to us.

It sounds like what you really want it the equivalent of /SHOW=SYMBOLS
from the VAX C compiler.  That functionality is not available from DEC C.
Notes 1039 and 1563 in this conference contain similar requests.

Jeff