Structures and pointers in SDCC

Discussion in 'Embedded Systems and Microcontrollers' started by Louise, Mar 20, 2011.

  1. Louise

    Thread Starter New Member

    Jan 17, 2010
    Does anybody have any experience dealing with *structures/unions/ pointers and parameter passing using the C programming language in Small Device C Compiler? I'm trying to 'port' (if that is the right term) 'generic' usb code (from Atmel) intended for a Keil compiler into SDCC and have 'ironed out' some 'creases' so far. However, I'm having a bit of a struggle trying to get to grips with those* areas. Actually I'm finding it quite hard anyway as I keep getting error messages for using "Old style C"! A pointer (excuse the pun) in the right direction (re:useful examples and/or explanations) would be very popular!
    (It occurs to me I probably should have posted this in programmers corner . . . it is an embedded project though!)
    Last edited: Mar 20, 2011