Skip to content

Commit

Permalink
Done with this
Browse files Browse the repository at this point in the history
  • Loading branch information
rshipp committed Apr 23, 2016
1 parent 25c52fb commit f663738
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flag_parser/flag_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ bool parse_flags(int argc, char** argv, FlagOptions& flags) {
switch (c) {
case 'h':
print_usage();
break;
exit(EXIT_SUCCESS);

case 'v':
flags.verbose = true;
Expand Down
8 changes: 7 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <cstdlib>
#include "flag_parser/flag_parser.h"

using namespace std;

Expand All @@ -13,6 +14,11 @@ using namespace std;
* The main entry point to the simulation.
*/
int main(int argc, char** argv) {
// TODO: implement me
FlagOptions options;
if (parse_flags(argc, argv, options)) {

} else {
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
3 changes: 3 additions & 0 deletions src/simulation/simulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

#pragma once
#include "process/process.h"
#include "frame/frame.h"
#include "virtual_address/virtual_address.h"
#include <cstdlib>
#include <vector>


/**
Expand Down Expand Up @@ -50,4 +52,5 @@ class Simulation {
// INSTANCE VARIABLES
private:

std::vector<Frame*> memory;
};

0 comments on commit f663738

Please sign in to comment.