[关闭]
@weixin 2015-04-16T16:41:29.000000Z 字数 743 阅读 1137

compiler study 3 - crowbar compile and interpret flow

compile


CRB_compile

Created with Raphaël 2.1.2main.cmain.cinterface.cinterface.cutil.cutil.cy.tab.cy.tab.cstring.cstring.cCRB_compilecrb_set_current_interpreteryyparsecrb_reset_string_literal_buffer

CRB_compile would do several things :
1. lex the source code to token
2. using yacc to parse tokens and generate binary syntax tree
3. if there is int expression or double expression, do variable folding.

CRB_interpret

Created with Raphaël 2.1.2main.cmain.cinterface.cinterface.cMEM.hMEM.hstorage.cstorage.cnative.cnative.cCRB_interpretMEM_open_storageMEM_open_storage_funcMEM_malloc_funccrb_add_std_fp

continue

Created with Raphaël 2.1.2continueinterface.cinterface.cexectute.cexectute.ccrb_execute_statement_list

crb_execute_statement_list

call graph : call graph

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注