Click here to Skip to main content
15,791,050 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: For loop Pin
jschell27-Sep-23 6:23
jschell27-Sep-23 6:23 
JokeRe: For loop Pin
Randor 27-Sep-23 7:57
professional Randor 27-Sep-23 7:57 
GeneralRe: For loop Pin
trønderen28-Sep-23 14:50
trønderen28-Sep-23 14:50 
GeneralRe: For loop Pin
jschell29-Sep-23 12:07
jschell29-Sep-23 12:07 
GeneralRe: For loop Pin
trønderen29-Sep-23 12:35
trønderen29-Sep-23 12:35 
GeneralRe: For loop Pin
Randor 29-Sep-23 13:04
professional Randor 29-Sep-23 13:04 
GeneralRe: For loop Pin
jschell2-Oct-23 6:09
jschell2-Oct-23 6:09 
GeneralRe: For loop Pin
Randor 2-Oct-23 6:47
professional Randor 2-Oct-23 6:47 
jschell wrote:
Just curious - what exactly do you think the scope is when a CPU register is used
All rules go out the window on the optimization pass. Could even optimize away the objects. But the initial code generation will follow the rules above if the compiler is "C99 compliant"

In fact if /LTCG is enabled entire functions could be removed/combined. Compiler optimization and link time code generation is an entirely different discussion.
GeneralRe: For loop Pin
trønderen2-Oct-23 9:01
trønderen2-Oct-23 9:01 
GeneralRe: For loop Pin
Randor 2-Oct-23 9:27
professional Randor 2-Oct-23 9:27 
GeneralRe: For loop Pin
trønderen2-Oct-23 13:17
trønderen2-Oct-23 13:17 
GeneralRe: For loop Pin
Randor 2-Oct-23 13:54
professional Randor 2-Oct-23 13:54 
GeneralRe: For loop Pin
trønderen2-Oct-23 22:11
trønderen2-Oct-23 22:11 
GeneralRe: For loop Pin
Randor 3-Oct-23 1:08
professional Randor 3-Oct-23 1:08 
GeneralRe: For loop Pin
trønderen3-Oct-23 10:54
trønderen3-Oct-23 10:54 
GeneralRe: For loop Pin
jschell3-Oct-23 5:35
jschell3-Oct-23 5:35 
GeneralRe: For loop Pin
k505429-Sep-23 12:55
mvek505429-Sep-23 12:55 
GeneralRe: For loop Pin
Randor 29-Sep-23 13:14
professional Randor 29-Sep-23 13:14 
GeneralRe: For loop Pin
honey the codewitch3-Oct-23 13:32
mvahoney the codewitch3-Oct-23 13:32 
AnswerRe: For loop Pin
Dave Kreskowiak25-Sep-23 9:53
mveDave Kreskowiak25-Sep-23 9:53 
GeneralRe: For loop Pin
Calin Negru25-Sep-23 23:40
Calin Negru25-Sep-23 23:40 
GeneralRe: For loop Pin
Richard Andrew x6428-Sep-23 13:12
professionalRichard Andrew x6428-Sep-23 13:12 
GeneralRe: For loop Pin
Dave Kreskowiak28-Sep-23 13:20
mveDave Kreskowiak28-Sep-23 13:20 
GeneralRe: For loop Pin
harold aptroot26-Sep-23 16:15
harold aptroot26-Sep-23 16:15 
GeneralRe: For loop Pin
Calin Negru27-Sep-23 0:09
Calin Negru27-Sep-23 0:09 

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.