git @ Cat's Eye Technologies Befunge-93 / 964f27b
Merge pull request #11 from catseye/audit-compilability Audit compilability Chris Pressey authored 3 years ago GitHub committed 3 years ago
4 changed file(s) with 50 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
0 @echo off
1 rem --------------------------------------------------------------
2 rem Batchfile that compiles the bef sources under Borland C++ 3.1.
3 rem Uses "large" memory model for befprof b/c it uses >64K data.
4 rem --------------------------------------------------------------
5
6 @echo on
7 bcc -ebin\bef.exe src\bef.c
8 bcc -ml -ebin\befprof.exe src\befprof.c
9 bcc -ebin\bef2c.exe src\bef2c.c
5555 -s: write contents of stack to log file
5656 -y: specify debugging delay in milliseconds
5757
58 Compiles Under:
59
60 Borland C++ v3.1 (16-bit MS-DOS)
61 DJGPP v2.952 (32-bit Protected-Mode MS-DOS)
58 Known to Compile Under :
59
60 gcc 5.4.0 (Ubuntu 16.04)
61 gcc 4.5.3 (NetBSD 6.1.5)
62 DICE C 3.15 (AmigaDOS 1.3)
63 DJGPP 2.05 gcc 8.1.0 (32-bit Protected-Mode, FreeDOS 1.1)
64 Borland C++ v3.1 (16-bit, FreeDOS 1.1)
65
66 Has, in the Past, been Known to Compile Under:
67
68 Metrowerks CodeWarrior (MacOS)
6269
6370 ******************************************************************
71
72 History:
6473
6574 v2.24: Summer 2018, Chris Pressey
6675 when & encounters an error or EOF condition it pushes
92101
93102 v2.20, Jul 2000, Chris Pressey
94103 prettied up preprocessor directives a bit
95 added defines for Metroworks CodeWarrior
104 added defines for Metrowerks CodeWarrior
96105 so that bef will build on MacOS
97106 relicensed under BSD
98107
4545
4646 Known to Compile Under :
4747
48 Borland C++ v3.1 (DOS)
4948 gcc 5.4.0 (Ubuntu 16.04)
49 gcc 4.5.3 (NetBSD 6.1.5)
50 DJGPP 2.05 gcc 8.1.0 (32-bit Protected-Mode, FreeDOS 1.1)
51 Borland C++ v3.1 (16-bit, FreeDOS 1.1)
52
53 Has, in the Past, been Known to Compile Under:
54
55 Metrowerks CodeWarrior (MacOS)
56
57 ******************************************************************
5058
5159 History:
5260
7381 cleanup only, no functional changes
7482
7583 v0.93, Jul 19 2000, Chris Pressey
76 added defines for Metroworks CodeWarrior
84 added defines for Metrowerks CodeWarrior
7785 so that bef2c will build on MacOS
7886 relicensed under BSD license
7987
5353 although note that cells are stored as 2-byte words,
5454 so too many repetitions may cause them to wrap back to 0.
5555
56 Known to Compile Under :
57
58 gcc 5.4.0 (Ubuntu 16.04)
59 gcc 4.5.3 (NetBSD 6.1.5)
60 DICE C 3.15 (AmigaDOS 1.3)
61 DJGPP 2.05 gcc 8.1.0 (32-bit Protected-Mode, FreeDOS 1.1)
62 Borland C++ v3.1 (16-bit, FreeDOS 1.1)
63 (NOTE: use "compact" or "large" memory model!)
64
65 Has, in the Past, been Known to Compile Under:
66
67 Metrowerks CodeWarrior (MacOS)
68
5669 ******************************************************************
70
71 History:
5772
5873 v1.0: circa Jun 2018
5974 handle trampoline at leftmost/topmost edges
6681 cleanup only, no functional changes
6782
6883 v0.93: Jul 2000, Chris Pressey
69 added defines for Metroworks CodeWarrior
84 added defines for Metrowerks CodeWarrior
7085 so that befprof will build on MacOS
7186 relicensed under BSD license
7287
7489 original Befunge-93 Profiler 'befprof' distribution.
7590
7691 ****************************************************************** */
77
78 /********************************************************* #PRAGMA'S */
79
80 /* This switches Borland C++ v3.1 to compact memory model, which doesn't crash */
81 #ifdef __BORLANDC__
82 #pragma option -mc
83 #endif
8492
8593 /********************************************************* #INCLUDE'S */
8694