Forums

1987 Z80 C compiler '2500ad' documentation

Started by Ico August 14, 2006
Hello,

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

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.

Thanks a lot,

_Ico

-- 
:wq
^X^Cy^K^X^C^C^C^C
In article <44e08ac3$0$11280$e4fe514c@dreader32.news.xs4all.nl>, Ico
<usenet@zevv.nl> writes
>Hello, >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 >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. >Thanks a lot,
I think at Computer Solutions may be able to help. They spam this NG frequently. -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ /\/\/ chris@phaedsys.org www.phaedsys.org \/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
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.
> 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. Paul Burke
Paul Burke <paul@scazon.com> 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
Ico wrote:

> 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 :)
Well-written code on a small micro project?!? You should frame that - it might be worth something one day! ;) Regards, -- Mark McDougall, Engineer Virtual Logic Pty Ltd, <http://www.vl.com.au> 21-25 King St, Rockdale, 2216 Ph: +612-9599-3255 Fax: +612-9599-3266