From 92f533fba3fdbb81726cb93fac5ddeeca6d66769 Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Fri, 22 Sep 2023 18:29:55 +0000 Subject: [PATCH] Initial commit --- .idea/.gitignore | 2 ++ .idea/codeStyles/codeStyleConfig.xml | 5 ++++ .idea/misc.xml | 11 +++++++++ .idea/modules.xml | 8 +++++++ .idea/sonarlint/issuestore/index.pb | 0 .idea/starter-lab-01-java-and-c.iml | 9 ++++++++ .idea/vcs.xml | 6 +++++ README.md | 34 ++++++++++++++++++++++++++++ c/compile.sh | 3 +++ c/disassemble.sh | 3 +++ c/main.c | 1 + c/run.sh | 3 +++ java/Main.java | 1 + java/compile.sh | 3 +++ java/disassemble.sh | 3 +++ java/run.sh | 3 +++ test/test.sh | 13 +++++++++++ 17 files changed, 108 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/sonarlint/issuestore/index.pb create mode 100644 .idea/starter-lab-01-java-and-c.iml create mode 100644 .idea/vcs.xml create mode 100644 README.md create mode 100755 c/compile.sh create mode 100755 c/disassemble.sh create mode 100644 c/main.c create mode 100755 c/run.sh create mode 100644 java/Main.java create mode 100755 java/compile.sh create mode 100755 java/disassemble.sh create mode 100755 java/run.sh create mode 100755 test/test.sh diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..5c98b42 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,2 @@ +# Default ignored files +/workspace.xml \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..17345cc --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ec1c923 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb new file mode 100644 index 0000000..e69de29 diff --git a/.idea/starter-lab-01-java-and-c.iml b/.idea/starter-lab-01-java-and-c.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/starter-lab-01-java-and-c.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e08aa27 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# Lab 1 - Software Peformance 2023 + +This is Lab 1 of the **Software Performance** course at USI. + +Go to [this Lab on iCorsi](https://www.icorsi.ch/course/view.php?id=16963). + + +## Submission Info + +Property | Value +------------ | ------------- +First Name | ... +Last Name | ... + +## Submission Checklist + +Please complete this checklist (turn [ ] into [X]) before you submit: + +- [ ] I completed the above Submission Info +- [ ] I solved the Java part: + - [ ] I implemented the Java code + - [ ] I completed java/compile.sh + - [ ] I completed java/run.sh + - [ ] I completed java/disassemble.sh +- [ ] I solved the C part: + - [ ] I implemented the C code + - [ ] I completed c/compile.sh + - [ ] I completed c/run.sh + - [ ] I completed c/disassemble.sh +- [ ] I wrote the source code myself and did not look at the source code of my classmates +- [ ] I ran test/test.sh and verified that it produces the expected output +- [ ] I verified that the disassembled instructions appear (not just the function names) +- [ ] I committed my changes (at least one commit, but possibly many) +- [ ] I pushed my commits to GitHub diff --git a/c/compile.sh b/c/compile.sh new file mode 100755 index 0000000..f7d403e --- /dev/null +++ b/c/compile.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +# TODO Command to compile main.c with gcc diff --git a/c/disassemble.sh b/c/disassemble.sh new file mode 100755 index 0000000..8998b77 --- /dev/null +++ b/c/disassemble.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +# TODO Command to disassemble the compiled C program with otool diff --git a/c/main.c b/c/main.c new file mode 100644 index 0000000..1abe391 --- /dev/null +++ b/c/main.c @@ -0,0 +1 @@ +// TODO Write C code diff --git a/c/run.sh b/c/run.sh new file mode 100755 index 0000000..f65e9dd --- /dev/null +++ b/c/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +# TODO Command to run the compiled C program diff --git a/java/Main.java b/java/Main.java new file mode 100644 index 0000000..ed2d914 --- /dev/null +++ b/java/Main.java @@ -0,0 +1 @@ +//TODO Write Java code diff --git a/java/compile.sh b/java/compile.sh new file mode 100755 index 0000000..d775016 --- /dev/null +++ b/java/compile.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +# TODO Command to compile Main.java with javac diff --git a/java/disassemble.sh b/java/disassemble.sh new file mode 100755 index 0000000..f1414b9 --- /dev/null +++ b/java/disassemble.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +# TODO Command to disassemble the compiled Java program with javap diff --git a/java/run.sh b/java/run.sh new file mode 100755 index 0000000..3f527b0 --- /dev/null +++ b/java/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +# TODO Command to run the compiled Java program with java diff --git a/test/test.sh b/test/test.sh new file mode 100755 index 0000000..bedcb62 --- /dev/null +++ b/test/test.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +echo Testing Java... + +../java/compile.sh +../java/disassemble.sh +../java/run.sh + +echo Testing C... + +../c/compile.sh +../c/disassemble.sh +../c/run.sh