• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » RTS functions interruptible
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

RTS functions interruptible

RTS functions interruptible

This question is answered
Gerte Hoogewerf
Posted by Gerte Hoogewerf
on Aug 06 2012 18:28 PM
Prodigy80 points

Hello,

I've read various things about RTS functions with respect to interruptibility, including the information on the following page:

http://processors.wiki.ti.com/index.php/Code_Generation_Tools_FAQ

I'm interested to know which functions can be interrupted, especially functions like memcpy and strasg.  The previous link reads that strasgi can be interrupted, but the sources bundled in the C6000 Code Generation Tools installer (version 7.3.7) explicitly use the DINT and RINT instructions in that function.

Is the information on this page (still) correct?

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • RandyP
    Posted by RandyP
    on Aug 06 2012 19:35 PM
    Guru60130 points

    Gerte Hoogewerf,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics.

    Since you are new, I will be glad to put in a request to get this thread moved to the right forum. This is the C64x Single Core DSP Forum for device questions. You will get answers to Compiler tools questions in the TI C/C++ Compiler Forum under the Development Tools group.

    The RTS utilities are included as source code in your installation in the same folder as the library .lib files. You can look through there for the facts on which functions are interruptible and the exact conditions under which they are interruptible.

    Regards,
    RandyP

    Search for answers, Ask a question, click  Verify  when complete, Help others, Learn more.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Archaeologist
    Posted by Archaeologist
    on Aug 07 2012 09:19 AM
    Mastermind40810 points

    Please see http://processors.wiki.ti.com/index.php/Reentrant; it's not complete, but it's a start.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Douglas Gwyn
    Posted by Douglas Gwyn
    on Aug 09 2012 01:41 AM
    Expert2060 points

    Generally speaking, if the interrupt service routine does nothing more than access its data buffer (and perhaps a flag or two) via a volatile-qualified type, it doesn't matter whether it interrupted an RTS function.

    The cited article on reentrancy should not have said that malloc is usually safe to re-invoke while it is executing.  You need to be sure that it has been carefully coded with that environment in mind.  The problem is that it could have been in the middle of moving free-block links around so that the heap structure is temporarily in an inconsistent state, and the reentrant instance will make further changes that interfere with correct completion of the interrupted instance when it resumes.  My own implementation of malloc has provisions to ensure reentrancy, but not all do.

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Gerte Hoogewerf
    Posted by Gerte Hoogewerf
    on Aug 09 2012 11:17 AM
    Prodigy80 points

    Thanks for the answers so far.

    My primary concern is not the reentrancy of functions in the RTS.  I'm worried about not hitting my minimum required interrupt latency when any thread is calling functions from the RTS.  The RTS is not compiled with the -miN compiler flag and it contains assembler code, so I must audit it to get any guarantees.

    Correct?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Aug 09 2012 12:48 PM
    Verified Answer
    Verified by George Mock
    Guru51455 points

    Please see this wiki page.  -George


    TI C/C++ Compiler Forum Moderator
    Please click Verify Answer on the best reply to your question.
    The Compiler Wiki answers most common questions.
    Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use