On 27/4-2005, at 1.24, Erik Petrich wrote:
> On Thu, 14 Apr 2005, Jan Flora wrote:
>> Hi all.
>> I've managed to compile TinyOS applications for HCS08 using SDCC and
>> works really great :-)
>> I have an implementation of the 802.15.4 radio stack for the
>> board I'm using, but only as a binary library file compiled using
>> Metrowerks Codewarrior 3.1. As far as I know, the library is in
>> ELF/DWARF (2.0?) format. Is there ANY way that I can link my apps
>> compiled with SDCC with this library? All ideas will be greatly
>> appreciated :-)
> Both ELF and the ASXXXX (the assembler/linker package SDCC is
> currently using for the HC08) object format are documented, so one
> theoretically write a translator. However, I know of no preexisting
> solution. If the calling conventions are different, you would also
> need to
> write some wrapper functions to translate between them.
>> Also, I'm considering extending SDCC to handle function inlining. Any
>> ideas, thoughts or things to beware of?
> After SDCC 2.5.0 is release (likely to be sometime in May), I will be
> adding support to the grammer and internal type structures for the C99
> keywords "inline" and "restrict". Inlining could then be supported
> the standard syntax.
I've already added support for the "inline" keyword in the grammar.
I've also added an "inlined" function attribute in the funcAttrs
structure in the sym_link structure. Hopefully I can implement a simple
inlining approach within the next couple of weeks. My plan is to just
support inlining of functions that has explicitly been marked by the
I could also implement grammar support for the "restrict" keyword while
I'm at it, so that you can spend your time doing other important things
Dept. of computer science
University of Copenhagen