cs205-lecture-examples

Example codes used during Harvard CS205 lectures
git clone https://git.0xfab.ch/cs205-lecture-examples.git
Log | Files | Refs | README | LICENSE

aliasing.c (157B)


      1 int f(int *a, int *b)
      2 {
      3     *a = 1;
      4     *b = 2;
      5     return *a;
      6 }
      7 
      8 int g(int *__restrict__ a, int *__restrict__ b)
      9 {
     10     *a = 1;
     11     *b = 2;
     12     return *a;
     13 }