gnupic: (SDC)C and PICs


Previous by date: 1 Oct 2002 10:36:52 -0000 __config directives (was hiccoughs on the learning curve)., Declan Moriarty
Next by date: 1 Oct 2002 10:36:52 -0000 Re: (SDC)C and PICs, Antti Siipola
Previous in thread:
Next in thread: 1 Oct 2002 10:36:52 -0000 Re: (SDC)C and PICs, Antti Siipola

Subject: (SDC)C and PICs
From: Antti Tuominen ####@####.####
Date: 1 Oct 2002 10:36:52 -0000
Message-Id: <200210011339.28354.antti.tuominen@hiit.FI>

Hi all,

After a year's break I'm reviving my pic projects, this time trying SDCC
instead of c2c and I'm having problems doing pic-specific stuff with it.

1) How can I define an interrupt handler? I tried to mimic absolute
 addressing syntax for variables and language extensions for other targets,
 but didn't have much success.

2) How do I define the target pic? Is it the "#define __16FXXX" trick as in
the regression test sources? I tried that, but the resulting .asm still says
'include "p16c84.inc"'.

3) From where do the C .h includes for different pics come from? Were they
available for download somewhere or was it some tool that translated the
original gpasm-includes?

Any help or pointers would be greatly appreciated. If someone has example
 code for the SDCC, it would probably answer most of my questions.

Cheers,
Antti
--
"In theory, I'm OK.  In practice, I'm disappointed in theory."


Previous by date: 1 Oct 2002 10:36:52 -0000 __config directives (was hiccoughs on the learning curve)., Declan Moriarty
Next by date: 1 Oct 2002 10:36:52 -0000 Re: (SDC)C and PICs, Antti Siipola
Previous in thread:
Next in thread: 1 Oct 2002 10:36:52 -0000 Re: (SDC)C and PICs, Antti Siipola


Powered by ezmlm-browse 0.20.