[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Apple2 - Contiki Compile Report
- Subject: Apple2 - Contiki Compile Report
- From: Rob <rsteinmetz@mindspring.com>
- Date: Mon, 24 Mar 2003 02:31:37 GMT
- Newsgroups: comp.sys.apple2
- Organization: Cox Communications
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020826
- Xref: archiver1.google.com comp.sys.apple2:29101
I've attempted to compile Conitiki using cc65-2.9.0
I've been able to compile the c64 versions without error.
So far I've modified;
include/time.h to define CLK_TCK for the apple2.
I arbitrarily set it to 64, based on the ThunderClock interrupt, but I
think maybe the _clocks_per_sec function could be used to check the
hardware and define the clock method.
I added;
libsrc/apple2/clock.s to include a simple self incrementing loop, per
Adams suggestion. I have no idea if it will work as written but I can
'make' libsrc with an error.
When I compile contiki, I get the following error compiling ctk.s
cc65 -I apps -I arch/cc65 -I ctk -I ek -I lib -I uip -I uip-apps -t apple2 --add
-source -DCTK_CONIO -Or -o ctk.s ctk/ctk.c
ctk/ctk.c(761): Error: Duplicate case label
ctk/ctk.c(831): Error: Duplicate case label
ctk/ctk.c(917): Error: Duplicate case label
ctk/ctk.c(1020): Error: Duplicate case label
make: *** [ctk.o] Error 1
These seem unrelated to the changes I've made, but one can never be sure.
I'm not that deep into the contiki code or cc65, I'm still learning both
of them. My initial impression is that the cc65 libraries for the Apple2
are not as developed as those for the various commodore machines,
especially the c64.
I expect that to the extent possible development effort in the cc65
libraries is the best approach.
I offer these results to help others and to see if anyone has any insight.
--
Rob
"Never ascribe to malice that which can be adequately explained by
stupidity"