djrieger / mjplusplus

A compiler for the MiniJava language
http://djrieger.github.io/mjplusplus/doc/doxygen/html/
6 stars 1 forks source link

figure out how to create classes in firm #58

Closed Nidan closed 9 years ago

Nidan commented 9 years ago

ast2firm.c:391 looks like we have to do memory layouting while creating the type. This covers fields, but how to attach methods to a class? Do we have to do name mangling and add the excplicit this? But why does firm have a class type? Maybe look at jfirm bindings