Jump to content
Sign in to follow this  
edt

Debug Inline Funcs

Recommended Posts

I've noticed that the source code for inline functions does not show up in the debug data. It's become sort of frustrating for me. Is there any plan to fix that?

 

I also noticed that optimizations that seem to be working in most cases don't appear to touch inline function calls. For instance, copy propagation doesn't seem to work on parameters or return values for inline functions. Is that fixable or is there a reason not to change it?

Share this post


Link to post
Share on other sites
I've noticed that the source code for inline functions does not show up in the debug data.  It's become sort of frustrating for me.  Is there any plan to fix that?

 

I also noticed that optimizations that seem to be working in most cases don't appear to touch inline function calls.  For instance, copy propagation doesn't seem to work on parameters or return values for inline functions.  Is that fixable or is there a reason not to change it?

 

BoostC command line option -i that is described in the BoostC documentation turns on debugging of inline functions.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites
BoostC command line option -i that is described in the BoostC documentation turns on debugging of inline functions.

Ah, thanks. That works beautifully. I hadn't noticed it in the documentation, but I had checked the "debug inline functions" option under MPLAB, and the given MTC file produces the flag -di instead of -i. I fixed mine and also added the aggressive optimization as an option since it was missing.

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...