Add 2011/richards try scripts
The bugs.md refers to the alt try script for testing any fix with the Apple silicon chip. If someone gets it to work the entry could be removed from the bugs.md file and the README.md file updated to refer to the alternate code. As the alternate code does not work (though it has a different type of crash) the alt build/try is not mentioned in the README.md file. It is not clear if it's helpful or not to have it in the README.md at this point as the important part is in bugs.md.
This commit is contained in:
1 parent
4cc95db8b0
commit
3b0a3b12a0
5 files changed
+72
-4
No files matched your search
@@ -4,7 +4,6 @@
|
||||
make
|
||||
```
|
||||
|
||||
|
||||
### Bugs and (Mis)features:
|
||||
|
||||
The current status of this entry is:
|
||||
@@ -19,7 +18,7 @@ For more detailed information see [2011 richards in bugs.md](/bugs.md#2011-richa
|
||||
## To use:
|
||||
|
||||
```sh
|
||||
./richards
|
||||
./try.sh
|
||||
```
|
||||
|
||||
|
||||
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# try.alt.sh - demonstrate IOCCC winner 2011/richards alt code
|
||||
#
|
||||
|
||||
# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it
|
||||
# this way allows us to have the user specify a different compiler in an easy
|
||||
# way.
|
||||
if [[ -z "$CC" ]]; then
|
||||
CC="cc"
|
||||
fi
|
||||
|
||||
make CC="$CC" all >/dev/null || exit 1
|
||||
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
|
||||
|
||||
read -r -n 1 -p "Press any key to run: echo '10 9 8 7 6 5 4 3 2 1*p*p*p*p*p*p*p*p*p' | ./richards.alt: "
|
||||
echo 1>&2
|
||||
echo '10 9 8 7 6 5 4 3 2 1*p*p*p*p*p*p*p*p*p' | ./richards.alt
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: echo '64 256 128 p/p*p' | ./richards.alt: "
|
||||
echo 1>&2
|
||||
echo '64 256 128 p/p*p' | ./richards.alt
|
||||
echo 1>&2
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# try.sh - demonstrate IOCCC winner 2011/richards
|
||||
#
|
||||
|
||||
# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it
|
||||
# this way allows us to have the user specify a different compiler in an easy
|
||||
# way.
|
||||
if [[ -z "$CC" ]]; then
|
||||
CC="cc"
|
||||
fi
|
||||
|
||||
make CC="$CC" all >/dev/null || exit 1
|
||||
|
||||
# clear screen after compilation so that only the entry is shown
|
||||
clear
|
||||
|
||||
|
||||
|
||||
read -r -n 1 -p "Press any key to run: echo '10 9 8 7 6 5 4 3 2 1*p*p*p*p*p*p*p*p*p' | ./richards: "
|
||||
echo 1>&2
|
||||
echo '10 9 8 7 6 5 4 3 2 1*p*p*p*p*p*p*p*p*p' | ./richards
|
||||
echo 1>&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: echo '64 256 128 p/p*p' | ./richards: "
|
||||
echo 1>&2
|
||||
echo '64 256 128 p/p*p' | ./richards
|
||||
echo 1>&2
|
||||
Reference in new issue
Block a user