No subject

Fred Tydeman uunet!ibminet.awdpa.ibm.com!ibmpa!tydeman
Thu Oct 17 06:45:06 PDT 1991


Subject:  Restricted pointers
 
The problem with restricted pointers can be described by the
following.... can you pass it on to Tom (Just the example below)
and see what he thinks.
 
   I think the whole thing is dangerous to programmers and hard for
   compilers to safely take full advantage of the aliasing information
   (especially when inlining).
 
   Consider this example :
 
   main () {
     int a[10];
 
     a[5] = 42;
     { int * restrict r;       /* function inlined at source level */
       r = a;
       r[5] = 7;            /* assign to "unique associated array" */
     }
     if (a[5] == 42) printf ("This case is undefined\n");
   }
 
   Comments are welcomed.
 
These are not IBM's views, these are the personal ones of:
Fred Tydeman, IBM, Austin, Texas (512) 838-3322; fax (512) 838-3484
Internet: tydemanaibmpa.awdpa.ibm.com    uucp: uunet!ibmsupt!tydeman



More information about the Numeric-interest mailing list