Webpages


github repo

yacc template

compiler explorer

Compiler


Lexer

  1. auto
  2. STRING LITERAL

Register allocation:

t0: load expr

t1, t2: operators left & right (result stored in t1)

t3: array addr stack base (in declaration)

t4: array length (in declaration)

t5: array addr pointer (in expression eval)

t6: array index (in expression eval)