ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: APPS/CC/FIELDS.CC

Source reference: APPS/CC/FIELDS.CC

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path APPS/CC/FIELDS.CC
Lines 29
Bytes 274
SHA-256 a7ffb0b395284aeed07102bcb75fb3aa1fe5f6188ba843a4fad6beb594a4648d
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
— No preprocessor include detected.

Detected symbols

Line Symbol
12 main

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

struct A {
  int x;
};
struct B {
  int pad;
  int x;
};
struct C {
  char c;
  int x;
};
int main() {
  A a;
  B b;
  C c;
  A a2;
  int n;
  a.x = 1;
  b.x = 2;
  c.c = 7;
  c.x = 9;
  a2.x = 4;
  n = a.x + b.x;
  n = n + c.c;
  n = n + c.x;
  n = n + a2.x;
  return n;
}

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-a7ffb0b395284aee Reviewed source: da3df29cb397 Class: generated-source-reference