René Dekker - 2015-01-10

Hello,

I would like to support the TI CC2541 chip with SDCC. As far as I can see, the main obstacle for that is the TI BLE support library, which only comes in an IAR version. That library is needed to use the Bluetooth functionality in the CC2541.

To make SDCC work with the TI library, I think three things are needed:
1) convert the TI library to a form that can be used with SDCC. Alternatively, adapt SDCC to read the IAR library format.
2) Adapt SDCC to use the calling convention used in the library
3) Port the IAR support code, mainly the calling convention support routines

I have spend the last week analysing the IAR library format, and think that I have a basic understanding of it now.

So, I have a couple of questions around this:
1) Is somebody already working on this?
2) Is my analysis correct? Anything I missed?
3) Where can I get practical information about how to adapt the SDCC compiler?
3) Where can I find good information on technical details of SDCC, especially about the calling convention(s)
4) Any other details I need to think about?

Many thanks for your response.