This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Inline function in c

Hello,

Is anybody knows inline function supported in keil in c?

Please advise if there any alternative to do inline function?

or is there any jump function in keil c as I have a program written that branched to to many function and it stops working.

Thanks.

  • Please advise if there any alternative to do inline function?
    plenty, just study "coding techniques"

    what do you hope to gain by using inline in a program that stop working for reasons unknown to you, do you think inline magically removes bugs?

    branched to to many function and it stops working.
    check your stack (size)

    Erik

  • There is no such thing as "Keil C" - Keil have a number of different C Compiler products, and the answer differs depending on the specific product.

    As ever, the answer to such questions will be found in the compiler Manual

    AFAIK, Keil C51 does not support inline functions - but check for yourself in the compiler Manual: http://www.keil.com/support/man/docs/c51/

    "I have a program written that branched to to many function and it stops working"

    So you need to do some proper analysis and debugging to determin the precise reason...