Skip to content

Instantly share code, notes, and snippets.

@cyhsutw
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save cyhsutw/03685c26b6e01a01f33f to your computer and use it in GitHub Desktop.

Select an option

Save cyhsutw/03685c26b6e01a01f33f to your computer and use it in GitHub Desktop.

Assignment 3

This document is written in GitHub-flavored markdown, you may view the visualised version here.

##Build the Program

This program can be built using the following commands:

$ cd Assignment3
$ make

This will compile the lex and yacc programs and generate test1.s and test1.adx of test1.c.

##Execute the Program ###Execution As we created an alias for the Andes simulator, you may use the following command to run the program:

$ andes-sim test1.adx

####Notes Since the alias is specified in .bashrc of user s9962210, the command listed above may not work for your account.

You may create one or use the full path of the Andes simulator to execute the program.

###Result And the desired result is:

a = 19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment