src/main.cpp
/// ***************************************************************************************************************************
/// Run the hello world program.
/// This function computes an addition between two numbers of top of the stack and stores the result
/// in main memory.
/// This functions runs the sequential BC interpreter implemented in C++.
/// ***************************************************************************************************************************
Run the hello world program.
This function computes an addition between two numbers of top of the stack and stores the result
in main memory.
This functions runs the sequential BC interpreter implemented in C++.
Run the hello world program . This function computes an addition between two numbers of top of the stack and stores the result in main memory . This functions runs the sequential BC interpreter implemented in C ++ .
void testHello() {
    vector<int> hello = {
        ICONST, 128,
        ICONST, 1,
        IADD,
        GSTORE, 0,
        GLOAD, 0,
        PRINT,
        HALT
    };
    VM vm(hello,  0);
    vm.setVMConfig(100, 100);
    vm.setTrace();
    vm.runInterpreter();
}
void testHello ( ) { vector < int > hello = { ICONST , 128 , ICONST , 1 , IADD , GSTORE , 0 , GLOAD , 0 , PRINT , HALT } ; VM vm ( hello , 0 ) ; vm . setVMConfig ( 100 , 100 ) ; vm . setTrace ( ) ; vm . runInterpreter ( ) ; }
Run the hello world program.
Run the hello world program .