fix Makefile and README.md for 2015/yang

This commit is contained in:
Landon Curt Noll committed 2023-03-24 21:30:46 -07:00
1 parent d4654f7e94
commit aaccea6cbc
2 files changed
+238 -151

No files matched your search

+46 -32
View File
@@ -1,31 +1,37 @@
# Most Pointed Reaction
Don Yang
<http://uguu.org/>
Don Yang
<http://uguu.org/>
# To build:
## Judges' comments:
### To use:
```sh
make
```
make
echo Some text | ./prog
### To run:
```sh
echo Some text | ./prog
```
### Try:
echo IOCCC 2015 | ./prog | tee output.c
make output
./output
```sh
echo IOCCC 2015 | ./prog | tee output.c
make output
./output
echo IOCCC 2015 | ./prog_c11 | tee output.c
make output
./output
echo IOCCC 2015 | ./prog_c11 | tee output.c
make output
./output
echo IOCCC 2015 | ./prog_c++98 | tee output.c
make output
./output
echo IOCCC 2015 | ./prog_c++98 | tee output.c
make output
./output
```
### Selected Judges Remarks:
## Judges' comments:
Before analysing the code in detail we were able to guess two out of four tests
this entry uses to tell the 5 languages/flavors apart. Can you find all four?
@@ -34,34 +40,45 @@ The way the text is encoded in the output doesn't cease to amaze. Can you tell
why an array of 512 elements is needed?
## Author's comments:
Fuuko is a sea star generator. Feed her some input through stdin to
get lots of sea star patterns in stdout.
gcc -O3 -std=c90 fuuko.c -lm -o fuuko_c90
echo IOCCC | ./fuuko_c90 > output_c90.c
```sh
cc -O3 -std=c90 fuuko.c -lm -o fuuko_c90
echo IOCCC | ./fuuko_c90 > output_c90.c
```
If you compile with a C99 compiler instead of C90, the sea stars will
have eyes.
gcc -O3 -std=c99 fuuko.c -lm -o fuuko_c99
echo IOCCC | ./fuuko_c99 > output_c99.c
```sh
cc -O3 -std=c99 fuuko.c -lm -o fuuko_c99
echo IOCCC | ./fuuko_c99 > output_c99.c
```
Don't like sea stars? Use a C++98 compiler to get dango instead.
g++ -O3 -std=c++98 fuuko.c -lm -o fuuko_cpp98
echo IOCCC | ./fuuko_cpp98 > output_cpp98.c
```sh
g++ -O3 -std=c++98 fuuko.c -lm -o fuuko_cpp98
echo IOCCC | ./fuuko_cpp98 > output_cpp98.c
```
Don't like dango either? Use a C++11 compiler to get just circles (or
swiss cheese, if you prefer that).
g++ -O3 -std=c++11 fuuko.c -lm -o fuuko_cpp11
echo IOCCC | ./fuuko_cpp11 > output_cpp11.c
```sh
g++ -O3 -std=c++11 fuuko.c -lm -o fuuko_cpp11
echo IOCCC | ./fuuko_cpp11 > output_cpp11.c
```
Don't like any of these patterns? Use a C11 compiler and there will be
no extra patterns.
gcc -O3 -std=c11 fuuko.c -lm -o fuuko_c11
echo IOCCC | ./fuuko_c11 > output_c11.c
```sh
cc -O3 -std=c11 fuuko.c -lm -o fuuko_c11
echo IOCCC | ./fuuko_c11 > output_c11.c
```
Regardless of which of these C/C++ dialects you choose, the output
will all be valid C90 code that reproduces original input on stdout,
@@ -70,7 +87,6 @@ filled with pointer dereferences (C stars).
Next time people ask you for a few pointers on C, you can run their
question through Fuuko and give them pointers all day long.
### Compatibility
Fuuko has been tested under these environments:
@@ -86,7 +102,6 @@ Fuuko has been tested under these environments:
- clang 3.4.1 on Linux
- tcc 0.9.25 on JS/Linux (C99 only)
### Features
The most obscure parts are in detecting the subtle differences in
@@ -111,11 +126,10 @@ Process of writing this program is included in spoiler.html
Code layout is inspired by Ibuki Fuuko, for her love of sea stars.
--------------------------------------------------------------------------------
<!--
## Copyright:
(c) Copyright 1984-2016, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc].
[judges]: http://www.ioccc.org/judges.html
[cc]: http://creativecommons.org/licenses/by-sa/3.0/
-->