Re: 1987 Z80 C compiler '2500ad' documentation



Paul Burke <paul@xxxxxxxxxx> wrote:

Ico wrote:
I just inherited a project running on a Z80, which is built with a
compiler called 'c80.exe' :

2500 A.D. Z80 C Compiler Copyright (C) 1987 - Version 4.05c

You lucky sod.

Hehe; well it's not too bad actually: I setup a dos emulator environment
on my main linux machine, and it actually runs quite well. Apart from
some quirks (no enums, static variables are re-initialized, and probably
more I didn't run into yet), it does the job.

The best part is that the inherited code was written so well, that it
compiles and runs with gcc 4, with no modifications at all. That's what
I call luck :)

Does anybody happen to have any documentation about this compiler at
hand ? I am mainly looking for flags to change warning levels, and
information about pref-defined preprocessor symbols.

I just happened to almost throw out the 6809 compiler (V4.03) the other
day, so I know where it is. Here are the command line options:

-1 Skip phase 1 preoptimization.
-d Include source code in output
-D Allow definition of symbols in command line
-i Specify #include path
-I change to alternate library section names
-n Run linker after compilation
-ofilename Output fiulename
-p/path/ Output directory
-P Run preprocessor only
-S Create assembler output with source code as comments

And that's it. I like the way with only a handful of options they still
managed to make case matter.

Not much indeed, but the '-1' is one of the things I was looking for.
Thanks for the info.

--
:wq
^X^Cy^K^X^C^C^C^C
.



Relevant Pages

  • Stdin.readIn ( ) console window
    ... Hello I got a source code that compiles fine. ... not with textPad but in textPad using the command compile java. ...
    (comp.lang.java.help)
  • Re: 1987 Z80 C compiler 2500ad documentation
    ... I am mainly looking for flags to change warning levels, ... information about pref-defined preprocessor symbols. ... Here are the command line options: ... -S Create assembler output with source code as comments ...
    (comp.arch.embedded)
  • Re: Modified version of the Gray parser generator
    ... where that code appeared in the source code. ... Of course the context is going to be different as the standalone ... the parser source code itself which makes me wonder if we're talking ... think of is that Gray compiles the action when the source code is read ...
    (comp.lang.forth)
  • RE: Source Server failing to realise its almost worked in VS 2008
    ... the command line/URL is limited. ... I've a custom source indexing process (we use MKS - not ... VS 2008 will download from the ... "Source code cannot be displayed" stop box. ...
    (microsoft.public.vc.debugger)
  • Re: circular dependency - some tools ?
    ... >>functions this circular dependency is. ... > You could look at the source code of depmod to see how depmod is ... I'm using modprobe to load my modules so on the command line ...
    (comp.os.linux.development.system)