cgmodule_x86.h 483 B

1234567891011121314151617181920212223242526
  1. #ifndef CGMODULE_X86_H
  2. #define CGMODULE_X86_H
  3. #include "cgmodule.h"
  4. #include "cgframe_x86.h"
  5. struct CGModule_X86 : public CGModule{
  6. string seg;
  7. CGModule_X86( ostream &out );
  8. void setSeg( string t );
  9. CGFrame* frame( CGFun *fun );
  10. void emitHeader();
  11. void emitImport( string t );
  12. void emitExport( string t );
  13. void emitFrame( CGFrame *f );
  14. void emitMacFrame( CGFrame *f );
  15. void emitData( CGDat *d );
  16. void emitFooter();
  17. void emitSubEsp( int sz );
  18. };
  19. #endif