CMPE 152: Compiler Design August 28/30 Lab Department of Computer Engineering San Jose State University Fall 2018 Instructor: Ron Mak www.cs.sjsu.edu/~mak
Today’s Lab Windows 10 (option 1) Windows 10 (option 2) Install GNU g++ and the “make” utility Cygwin: https://www.cygwin.com Windows 10 (option 2) Install a Linux distribution https://docs.microsoft.com/en-us/windows/wsl/install-win10 Install the Boost header files https://www.boost.org You only need the header files, not the library.
Today’s Lab, cont’d Install Eclipse CDT (or your favorite C++ IDE) Windows, Linux, or Mac OS https://www.eclipse.org/cdt/ Create a C++ project in Eclipse (or other IDE). Set the project to run C++ 11 dialect. Set the project to include the Boost header files. May not be necessary if you installed the header files in a standard location such as /usr/local/include/boost on Linux or Mac OS. Import, compile, and run the Chapter2cpp source files: http://www.cs.sjsu.edu/~mak/CMPE152/sources/
Today’s Lab, cont’d In the directory where you expanded the Chapter2cpp source files run the command to compile and run on the command line. make compile src=hello.pas