Improve situation with clang for 1989/westley
The alt code has been changed so that in addition to the main feature working it will also generate ver0 and ver1 correctly; ver2 and ver3 cannot be compiled still. This is not perfect but it is progress. I will look at this further later most likely. Added compile.alt.sh to compile the alt code and generate the alt code generated code. It generates it in the file name form alt.ver[0-3].c and the code will be compiled as such. Added try.sh to demonstrate the main (original) program. This is because there are a lot of commands to try. Added try.alt.sh to demonstrate the alt program (not trying the ver2 and ver3, naturally). The rationale is the same as for try.sh. The Makefile has been updated for these changes. Updated .gitignore as a number of new files will be created when running compile.alt.sh. The bugs.md has been updated as there has been some progress made. The hint was removed at this time as it's not applicable now; the problem of main() args not being allowed is no longer true. However the status line has not been updated because the root of the problem is this. There are currently no hints because I do not have any yet. The thanks file has also been updated for the new scripts as well as the situation being changed.
This commit is contained in:
1 parent
ff72c76ff1
commit
08a699bfe8
11 files changed
+261
-80
No files matched your search
@@ -13,7 +13,9 @@
|
||||
#
|
||||
# CC=/opt/local/bin/gcc-mp-12 ./compile.sh
|
||||
#
|
||||
# If you wish to slow down the script you can use the DELAY variable like:
|
||||
# We sleep (by default) for approximately 1 second after each command so that
|
||||
# the you can read what is being done. If this is too fast you can change it in
|
||||
# a similar way to the above but using the variable DELAY like so:
|
||||
#
|
||||
# DELAY=2 ./compile.sh
|
||||
#
|
||||
@@ -34,7 +36,7 @@ if [[ -z "$CC" ]]; then
|
||||
fi
|
||||
|
||||
# get sleep duration
|
||||
# we cannot use the form '${DELAY:=0}' because at least in some versions of bash
|
||||
# we cannot use the form '${DELAY:=5}' because at least in some versions of bash
|
||||
# it tries to invoke the command and obviously that won't work. Thus we check if
|
||||
# it's empty before setting the default.
|
||||
if [[ -z "$DELAY" ]]; then
|
||||
@@ -68,8 +70,8 @@ sleep "$DELAY"
|
||||
# now compile the files by running make alt
|
||||
#
|
||||
|
||||
echo "Compiling alt versions ..." 1>&2
|
||||
echo "Compiling generated versions ..." 1>&2
|
||||
sleep "$DELAY"
|
||||
echo "$ make CC=$CC alt" 1>&2
|
||||
echo "$ make CC=$CC ver0 ver1 ver2 ver3" 1>&2
|
||||
sleep "$DELAY"
|
||||
make CC="$CC" alt
|
||||
make CC="$CC" ver0 ver1 ver2 ver3
|
||||
Reference in new issue
Block a user