Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: inline or macro Pin
PJ Arends8-Jul-09 9:12
professionalPJ Arends8-Jul-09 9:12 
JokeRe: inline or macro Pin
David Crow8-Jul-09 7:07
David Crow8-Jul-09 7:07 
JokeRe: inline or macro Pin
Roger Stoltz8-Jul-09 8:11
Roger Stoltz8-Jul-09 8:11 
AnswerRe: inline or macro Pin
Stuart Dootson8-Jul-09 7:14
professionalStuart Dootson8-Jul-09 7:14 
AnswerRe: inline or macro Pin
KellyR8-Jul-09 7:36
KellyR8-Jul-09 7:36 
GeneralRe: inline or macro Pin
Michael Schubert8-Jul-09 10:48
Michael Schubert8-Jul-09 10:48 
QuestionRe: inline or macro Pin
Rajesh R Subramanian8-Jul-09 19:35
professionalRajesh R Subramanian8-Jul-09 19:35 
AnswerRe: inline or macro Pin
Michael Schubert8-Jul-09 20:59
Michael Schubert8-Jul-09 20:59 
I had mixed results when I played around with this. The VC6 compiler does ignore __forceinline when a function is beyond a certain complexity/size, especially when there is a call to another function within.
The Intel C++ compiler (at least newer versions) has a bunch of switches to control inlining and lets you inline almost every function. When you try that with a large function, the final .obj (and the resulting .exe) file(s) will be huge.

After a lot of testing I realised that it's usually best to let the compiler decide (/Ob2). The Intel compiler is especially good in this regard.
GeneralRe: inline or macro Pin
Rajesh R Subramanian8-Jul-09 21:55
professionalRajesh R Subramanian8-Jul-09 21:55 
AnswerRe: inline or macro Pin
CPallini8-Jul-09 21:09
mveCPallini8-Jul-09 21:09 
GeneralRe: inline or macro Pin
Rajesh R Subramanian8-Jul-09 21:57
professionalRajesh R Subramanian8-Jul-09 21:57 
AnswerRe: inline or macro Pin
Maximilien8-Jul-09 8:27
Maximilien8-Jul-09 8:27 
GeneralRe: inline or macro Pin
CPallini8-Jul-09 21:04
mveCPallini8-Jul-09 21:04 
Questiondifference b/w iterators and indexing for STL Pin
hawk23reddy8-Jul-09 6:32
hawk23reddy8-Jul-09 6:32 
AnswerRe: difference b/w iterators and indexing for STL Pin
minkowski8-Jul-09 6:57
minkowski8-Jul-09 6:57 
AnswerRe: difference b/w iterators and indexing for STL Pin
Stuart Dootson8-Jul-09 7:04
professionalStuart Dootson8-Jul-09 7:04 
QuestionHow to use gotoxy().....? Pin
Razanust8-Jul-09 6:08
Razanust8-Jul-09 6:08 
AnswerRe: How to use gotoxy().....? Pin
Michael Schubert8-Jul-09 6:58
Michael Schubert8-Jul-09 6:58 
AnswerRe: How to use gotoxy().....? Pin
Jijo.Raj8-Jul-09 7:20
Jijo.Raj8-Jul-09 7:20 
Questionnewbie to multi threading Pin
minkowski8-Jul-09 5:45
minkowski8-Jul-09 5:45 
AnswerRe: newbie to multi threading Pin
Stuart Dootson8-Jul-09 6:54
professionalStuart Dootson8-Jul-09 6:54 
GeneralRe: newbie to multi threading Pin
minkowski8-Jul-09 7:04
minkowski8-Jul-09 7:04 
GeneralRe: newbie to multi threading Pin
Stuart Dootson8-Jul-09 9:34
professionalStuart Dootson8-Jul-09 9:34 
GeneralRe: newbie to multi threading Pin
minkowski8-Jul-09 22:01
minkowski8-Jul-09 22:01 
GeneralRe: newbie to multi threading Pin
Stuart Dootson9-Jul-09 0:28
professionalStuart Dootson9-Jul-09 0:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.