Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Function force inlining for frc compiler (http://www.chiefdelphi.com/forums/showthread.php?t=135783)

Hsifeulbhsifder 03-15-2015 01:08 PM

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.

Ben Wolsieffer 03-15-2015 01:13 PM

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?

Hsifeulbhsifder 03-15-2015 01:21 PM

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.

codes02 03-16-2015 02:22 AM

Re: Function force inlining for frc compiler
 
Quote:

Originally Posted by Hsifeulbhsifder (Post 1457759)
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.


All times are GMT -5. The time now is 10:46 AM.

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