Giter Club home page Giter Club logo

pad-skeleton-c's Introduction

IJVM emulator assignment skeleton (Vrije Universiteit Amsterdam)

See http://vu-programming.gitlab.io/pad/website/ for the course content and more info.

Compiling

Requires make and GCC or Clang

Run make ijvm to build the ijvm binary

You can enable the debug print (dprintf) found in include/util.h by setting the -DDEBUG compiler flag (e.g., make clean && make testbasic CFLAGS=-DDEBUG).

Running a binary

Run an IJVM program using ./ijvm binary. For example ./ijvm files/advanced/Tanenbaum.ijvm.

Adding header files

Add your header files to the folder include.

Testing

To run a specific test run make run_testX (e.g. make run_test1).

  • To run all basic tests, do make testbasic.
  • To run all advanced tests, do make testadvanced.
  • Check for memory leaks using make testleaks
  • Check for memory errors/ undeifned behavior make testsanitizers (requires LLVM)
  • To compile with pedantic flags: make pedantic

You can debug the tests by running running the binaries generated by make build_tests through GDB.

Handing in

Generate a gzipped tarball of your project using the make dist command. Make sure to double check that all your required files are included in the tarball.

Compatibility

You need a valid C11 compiler, such as clang or gcc, as well as glibc. Do not use any non-standard libraries.

This skeleton works on Linux and MacOS. Windows users can install a Linux VM, or follow the instructions below.

Windows

To develop on Windows, we recommend using the Windows Subsystem for Linux, and installing Ubuntu from the Microsoft Store. Once you have gone through the setup steps, you can access the Linux command line by executing bash from the Windows command line. You can access your files in the Windows file system through mount points (e.g. cd /mnt/c/Users/<username>/Desktop).

Both glibc, gcc, and make are included in the package build-essential. To install this package, execute the following commands:

  • sudo apt-get update
  • sudo apt-get install build-essential

Now you can compile the project by navigating to this directory and executing the make command.

Tools

You can install the goJASM assembler by executing make tools. This will download a goJASM executable in the tools directory.

pad-skeleton-c's People

Contributors

workofartiz avatar sirmc avatar blacknovatech avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.