From: Borut Razem <borut.razem@si...> - 2009-12-08 21:31:36
I took a look to your changes in sdcc compiler sources. I suggest to
implement cs08 as a special target, similar to ds400_port and
tininative_port implementation in src/ds390/main.c or gbz80_port in
src/z80/main.c. You just have to create a cs08_port table, which is in
general a copy of hc08_port table in src/hc08/main.c, just changing the
target id, target name, processor name and pointer to peephole rules.
You also have to update port.h with cs08 specifics: define
TARGET_ID_CS08, TARGET_IS_CS08, ...
You don't need to change SDCCglue.c any more and changes in SDCCmain.c
will be minimized: there is no need for ALLOW_CS08_EXTENSIONS since cs08
will be a separate target. I also don't see any benefit from
--c-lib-preferred command line option: you can achieve the same by
invoking sdcc with -DC_LIB_PREFERRED.
Gary Osborn wrote:
> My cs08 files are attached. The source files that I edited my changes
> in to were from the latest repository tarball. You have made changes
> that are not compatible with the latest VC6 snapshot files, so I am no
> longer able to build a system with the new files. My files were
> compatible with the snapshots a few days ago, so I don't think you will
> encounter any version problems when all the files are your latest. I
> will retest my changes when I am able to build a system again.
> My changes are tagged with my initials. The initials are not intended
> to be a permanent part of the file. There is some documentation in
> readme.txt and SDCC/src/hc08/cs08.txt.