mighty

The mighty programming language, compiler and tools (WIP)
Log | Files | Refs

target.mty (171B)


      1 int add(int a, int b) =
      2     a + b
      3 int main() ::
      4     ret add(1, 2)
      5 
      6 // target QBE:
      7 
      8 //export function w $add(w %a, w %b) {
      9 //@start
     10 //    %r =w add %a, %b
     11 //    ret %r
     12 //}