-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
36 lines (29 loc) · 766 Bytes
/
main.cpp
File metadata and controls
36 lines (29 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "windows.h"
#include <iostream>
#include "registers.h"
#include "base_reg.h"
#include "regs.h"
#include "parameter_number.h"
#include "state.h"
#include <list>
#include "base_operand.h"
#include "operands.h"
#include "generator_operand.h"
#include "time.h"
#include "source_parser.h"
#include "configuration.h"
#include "junk_manager.h"
int main(int argc,char **argv)
{
std::cout << "#########################################\n";
std::cout << "######### PJC #1 #########\n";
std::cout << "#########################################\n";
srand(time(0));
junk_manager::instance().init();
if(argc==4)
{
source_parser::instance().parse(argv[1],argv[2],argv[3]);
}
else
std::cout << "Usage: PJC <source> <dest> <macro file>\n";
}