Grant Jacobs wrote:
Finally gotten an old program to a state that the compiler has almost stopped telling interesting little titbits (errors) in the build.
Two things remain: an error and a warning:
- The error indicates (to me) that the compiler thinks its
generating an enormous code or that the linker/loader is doing strange things. Its not *that* big! Any ideas? I'm developing this on OSX 10.2.8. (I can't locate a la_symbol_ptr in the source code, btw.)
e.g.
/usr/bin/ld: /usr/lib/crt1.o can't create relocation entry for prebinding (address of section (__DATA,__la_symbol_ptr) more than 24-bits away from first segment, use -noprebind)
I don't know exactly, maybe some internal linker stuff (and due to the use of the RTS and libc the total code size might get bigger, though 16 MB would be *quite* a lot, not sure where it comes from; how big is the resulting executable?). Anyway, did you try just using `-noprebind' as it says?
- I've been warned about using underscores at the end of
identifiers. Obviously I can rename them, but there is a reason for this naming. Does this really do any harm? I can understand issues with underscores at the start of identifiers, but at the end?
Which issues actually? The thing is simply that both ways (plus several underscores in a row) are forbidden in ISO Extended Pascal. Some other dialects allow them, so GPC only warns. ('-Wno-underscore' to turn it off).
Frank