Ignore:
Timestamp:
Jan 19, 2011, 6:23:27 PM (9 years ago)
Author:
campbell
Message:

Port memory spaces changes to latest prototype compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Deliverables/D2.3/8051-memoryspaces-branch/cparser/Transform.ml

    r453 r460  
    3434let new_temp ?(name = "t") ty =
    3535  let id = new_temp_var ~name ty in
    36   { edesc = EVar id; etyp = ty }
     36  { edesc = EVar id; etyp = ty; espace = Any (* Always stack allocated? *) }
    3737
    3838let get_temps () =
     
    5959      let (desc', env') =
    6060        match g.gdesc with
    61         | Gdecl((sto, id, ty, init) as d) ->
    62            (Gdecl(decl env d), Env.add_ident env id sto ty)
     61        | Gdecl (sp, ((sto, id, ty, init) as d)) ->
     62           (Gdecl(sp, decl env d), Env.add_ident env id sto ty sp)
    6363        | Gfundef f ->
    6464           (Gfundef(fundef env f),
    65             Env.add_ident env f.fd_name f.fd_storage (fundef_typ f))
     65            Env.add_ident env f.fd_name f.fd_storage (fundef_typ f) Code)
    6666        | Gcompositedecl(su, id) ->
    6767            (Gcompositedecl(su, id),
Note: See TracChangeset for help on using the changeset viewer.