Add note about optimiser in 1986/marshall
This commit is contained in:
1 parent
850abc4f37
commit
948ea60ff6
2 files changed
+10
-2
No files matched your search
@@ -69,7 +69,9 @@ CINCLUDE=
|
|||||||
|
|
||||||
# Optimization
|
# Optimization
|
||||||
#
|
#
|
||||||
OPT=
|
# We DISABLE the optimiser due to funny problems in different compilers and
|
||||||
|
# systems. See compilers.md for more details on this problem.
|
||||||
|
OPT= -O0
|
||||||
|
|
||||||
# Default flags for ANSI C compilation
|
# Default flags for ANSI C compilation
|
||||||
#
|
#
|
||||||
@@ -132,8 +134,10 @@ all: data ${TARGET}
|
|||||||
clean clobber install love haste waste maker easter_egg \
|
clean clobber install love haste waste maker easter_egg \
|
||||||
sandwich supernova deep_magic magic charon pluto
|
sandwich supernova deep_magic magic charon pluto
|
||||||
|
|
||||||
|
# We FORCE disable the optimiser due to funny problems in different compilers
|
||||||
|
# and systems. See compilers.md for details.
|
||||||
${PROG}: ${PROG}.c
|
${PROG}: ${PROG}.c
|
||||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
${CC} ${CFLAGS} -O0 $< -o $@ ${LDFLAGS}
|
||||||
|
|
||||||
# alternative executable
|
# alternative executable
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -4,6 +4,10 @@
|
|||||||
make all
|
make all
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
NOTE: we FORCE disable the optimiser due to a funny problem with different
|
||||||
|
compilers and systems. See below and [compilers.md](compilers.md) for details.
|
||||||
|
|
||||||
There is an [alternate version](#alternate-code). The reason is a funny problem:
|
There is an [alternate version](#alternate-code). The reason is a funny problem:
|
||||||
in modern systems, depending on the platform, compiler and the optimiser, it
|
in modern systems, depending on the platform, compiler and the optimiser, it
|
||||||
would work with one compiler with the optimiser but it would not work with the
|
would work with one compiler with the optimiser but it would not work with the
|
||||||
|
|||||||
Reference in new issue
Block a user