Coder Social home page Coder Social logo

trungnb2210 / c-extension-sql-emulator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.87 MB

The Extension of C project. Due to the nature of the assignment, the Emulator and Assembler is privated due to privacy reasons according to Imperial College's projects policies.

Makefile 1.13% Shell 0.83% M4 41.22% CSS 0.23% C 32.22% C++ 13.12% XSLT 7.16% Yacc 1.32% D 0.44% Java 1.27% Roff 0.94% Lex 0.11%

c-extension-sql-emulator's Introduction

Submissions: Aboud Dabbas, Angus Leung, Malhar Rajpal, Trung Nguyen

Part I - Emulator Implementation Part II - Assembler Implementation run "make clean; make" in ./src to generate emulate, assemble executable run ./run -Epfe ../src/emulate in ./armv8_testsuite (to run emulator testsuite) run ./run -Apfa ../src/assemble in ./armv8_testsuite (to run assembler testsuite)

emulate.c, assemble.c in ./src
Other emulator code files are in ./src/emulate_files
Other assembler code files are in ./src/assemble_files
Shared files between emulator and assembler are in ./src

Part III - Raspberry Pi Assembly - ./programs/led_blink.s call "make clean; make" in ./src to generate assembly executable run ./assemble ../programs/led_blink.s ../programs/kernel8.img to generate kernel8.img for RPi

Part IV - Extension (SQL--) call "make clean; make" in ./extension to generate sql executable run ./unit_tests in ./extension/sql_files to run unit tests

run chmod +x testman.sh     (permissions)
run chmod +x testgen.sh     (permissions)

run ./testgen.sh in ./extension/sql_files to run integration tests against Professor McBrien's SQL Database
run ./testman.sh in ./extension/sql_files to run integration tests against manually generated expected outputs

sql.c in ./extension
Other sql code files are in ./extension/sql_files
./extension/sql_files/integration_test_tables.txt is included for testman.sh to run integration tests

Interim Checkpoint Report and Final Report in ./doc

IF YOU WANT TO TRY SQL QUERIES FOR YOURSELF: There is an example table data set ./extension/USER_TEST_TABLE.txt There is an example query ./extension/USER_TEST_QUERY.txt run "make clean; make" in ./extension run ./sql USER_TEST_TABLE.txt USER_TEST_QUERY.txt USER_TEST_RESULT.txt in ./extension

Look at the query result!

Enjoy!

c-extension-sql-emulator's People

Contributors

trungnb2210 avatar

Watchers

 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.