It's in x86 Assembly/GAS Syntax. The assembly code is directly executable.
-
Type
make
-
Type
./calc <testCase.txt >testCase.s
to run the test case. -
Type
gcc -m32 testCase.s -o testCase
to build the executable file. -
Type
./testCase
to run the executable file.
Type make clean
to clean files.
-
The symbol object get the value of the address when this symbol object is initialized.
-
I use MacOS to write the project. Please let me know if the project doesn't work.