3 [Stefan Fuchs <snfuchs@sokrates.franken.de> ]
6 I have ported this source to gnu/c.
8 This source can only be compiled with gcc V2.7.2.1 and above
9 as it requires explicit register specification, which was made
10 available with this version for the first time.
12 As its implementation is not yet perfect, the source code must
13 be modified to work with gcc (see below).
15 Some of this problems are announced to be fixed with gcc V2.8.0 .
17 The size of the executable is quite small (840 Bytes) compared to
18 the SAS/C version (860 Bytes) and shows that gcc has become a very
23 I made the following changes:
29 In order to compile with gcc the following changes must be made within
30 source and include files:
31 __asm must be converted to ASM, as __asm has a different meaning with gcc.
32 GNUCREG("xy") must be added after each parameter of each function, which
33 gets parameters in certain registers.
36 Changed #include "samplefuncs.h" to #include "SampleFuncs.h"
37 as the gcc precompiler is case-sensitive with filenames
38 gcc can not handle relative pathnames, so when compiling with gcc, the
39 pathname of examplebase.h is specified within the makefile
42 all references to struct SegList * replaced by APTR as this structure is
43 nowhere declared and gcc does not like this.
44 __saveds removed for LibStart() and ExtFuncLib(), as these do not access
45 any global data. This should save some bytes on all compilers.
52 gcc can not handle relative pathnames, so when compiling with gcc, the
53 pathname of examplebase.h is specified within the makefile