kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

100_record_data_relocation.toy (235B)


      1 record RelRec {
      2   off: i32,
      3   tag: i32,
      4 }
      5 
      6 pub let target_value: i32 = 42;
      7 pub let rec: RelRec = RelRec { off: @pcrel(target_value, 0), tag: 7 };
      8 
      9 fn __user_main(): i64 {
     10   return 42;
     11 }
     12 
     13 fn main(): i32 { return __user_main() as i32; }