hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

start.ha (229B)


      1 // License: MPL-2.0
      2 // (c) 2021 Mykyta Holubakha <hilobakho@gmail.com>
      3 use rt;
      4 use format::elf;
      5 
      6 @init fn init_linux() void = {
      7 	let i = 0;
      8 	for (rt::envp[i] != null) {
      9 		i += 1;
     10 	};
     11 	auxv = &rt::envp[i + 1]: *[*]elf::auxv64;
     12 };