#1416 inline fails w. nesC generated code

closed-fixed
5
2013-05-25
2008-01-05
No

Hi All.
I'm having problems with generated code from my port of TinyOS to CC2430*. The code is generated by the precompiler nesC and introduces a very high number of superfluous function calls to be inlined by the compiler.

I've reproduced the problem in the attached C file, which fails with the same error:

sdcc -mmcs51 --std-sdcc99 test_inline.c
-:0: error 20: Undefined identifier '__00010001'
at 28: error 20: Undefined identifier 'result'

* Again, check out the following if you are interested:
http://www.tinyos8051wg.net

Discussion

  • Martin Leopold

    Martin Leopold - 2008-01-05
     
  • Philipp Klaus Krause

    Logged In: YES
    user_id=564030
    Originator: NO

    Try using #define as a workaround.
    inline support in sdcc is (and has ever been) mostly broken. It never just worked for anything I wanted to inline. However with some work it's sometimes possible to rewrite a function so sdcc will inline it (or at least compile the code).

     
  • RvS

    RvS - 2008-05-02

    Logged In: YES
    user_id=1897859
    Originator: NO

    I submitted a patch (1956200) that solves this

     
  • Maarten Brock

    Maarten Brock - 2008-05-13

    Logged In: YES
    user_id=888171
    Originator: NO

    Fixed in SDCC 2.8.1 #5155.

     
  • Maarten Brock

    Maarten Brock - 2008-05-13
    • milestone: --> fixed
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks