Go to Post I continue in FIRST because I'm not looked down upon for not knowing how to do something, but held up because I want to learn. - LemmingBot [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-03-2015, 13:08
Hsifeulbhsifder Hsifeulbhsifder is offline
Programmer
AKA: Zaeem Mohamed
FRC #5428 (Breaking Bots)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Markham, ON, Canada
Posts: 41
Hsifeulbhsifder is on a distinguished road
Function force inlining for frc compiler

Hello, just wondering if it is possible to force inline functions when using the frc compiler, using
Code:
__forceinline
does not work, but
Code:
__inline
does. I just want to know if it is possible.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-03-2015, 13:13
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Function force inlining for frc compiler

You could try:
Code:
__attribute__((always_inline))
as in:
Code:
inline void foo (const char) __attribute__((always_inline));
But really, is there any need for this in FRC code?
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists

Last edited by Ben Wolsieffer : 15-03-2015 at 13:15.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-03-2015, 13:21
Hsifeulbhsifder Hsifeulbhsifder is offline
Programmer
AKA: Zaeem Mohamed
FRC #5428 (Breaking Bots)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Markham, ON, Canada
Posts: 41
Hsifeulbhsifder is on a distinguished road
Re: Function force inlining for frc compiler

Thank you, there isn't much need for it, I just wanted to know. So it works exactly how it does in linux. Thanks.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-03-2015, 02:22
codes02 codes02 is offline
Randolph aka Roxbury aka R_______
AKA: Cody Schafer
no team (Formerly: Team 11, MORT)
 
Join Date: Oct 2007
Rookie Year: 2008
Location: MA, USA
Posts: 57
codes02 is on a distinguished road
Re: Function force inlining for frc compiler

Quote:
Originally Posted by Hsifeulbhsifder View Post
Thank you, there isn't much need for it, I just wanted to know. So it works exactly how it does in linux. Thanks.
The "frc compiler" is just standard gcc built to crosscompile ARM binaries. Full documentation is here: https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/ , but googling for what you're after may have better results.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi