Click here to Skip to main content
15,894,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing a pointer to object - using template - followup. Pin
jschell14-Feb-23 4:44
jschell14-Feb-23 4:44 
GeneralRe: Passing a pointer to object - using template - followup. Pin
jschell14-Feb-23 4:47
jschell14-Feb-23 4:47 
AnswerRe: Passing a pointer to object - using template - followup. Pin
Jeremy Falcon13-Feb-23 12:43
professionalJeremy Falcon13-Feb-23 12:43 
GeneralMessage Closed Pin
14-Feb-23 4:24
Member 1496877114-Feb-23 4:24 
GeneralRe: Passing a pointer to object - using template - followup. Pin
Jeremy Falcon14-Feb-23 5:34
professionalJeremy Falcon14-Feb-23 5:34 
Questionxxx_GetProcessIndexFromID error... Pin
charlieg10-Feb-23 11:46
charlieg10-Feb-23 11:46 
Questionis it okeedokee to include defining headers hither and yon all over the place Pin
BernardIE53179-Feb-23 6:28
BernardIE53179-Feb-23 6:28 
AnswerRe: is it okeedokee to include defining headers hither and yon all over the place Pin
Mircea Neacsu9-Feb-23 7:08
Mircea Neacsu9-Feb-23 7:08 
GeneralRe: is it okeedokee to include defining headers hither and yon all over the place Pin
BernardIE53179-Feb-23 7:46
BernardIE53179-Feb-23 7:46 
GeneralRe: is it okeedokee to include defining headers hither and yon all over the place Pin
Mircea Neacsu9-Feb-23 8:06
Mircea Neacsu9-Feb-23 8:06 
GeneralRe: is it okeedokee to include defining headers hither and yon all over the place Pin
BernardIE53179-Feb-23 8:46
BernardIE53179-Feb-23 8:46 
AnswerRe: is it okeedokee to include defining headers hither and yon all over the place Pin
jschell9-Feb-23 9:34
jschell9-Feb-23 9:34 
QuestionCompilers Pin
Calin Negru2-Feb-23 9:24
Calin Negru2-Feb-23 9:24 
AnswerRe: Compilers Pin
Mircea Neacsu2-Feb-23 9:56
Mircea Neacsu2-Feb-23 9:56 
AnswerRe: Compilers Pin
Dave Kreskowiak2-Feb-23 10:08
mveDave Kreskowiak2-Feb-23 10:08 
GeneralRe: Compilers Pin
trønderen2-Feb-23 12:41
trønderen2-Feb-23 12:41 
GeneralRe: Compilers Pin
Dave Kreskowiak2-Feb-23 12:43
mveDave Kreskowiak2-Feb-23 12:43 
GeneralRe: Compilers Pin
jschell3-Feb-23 5:17
jschell3-Feb-23 5:17 
GeneralRe: Compilers Pin
Calin Negru2-Feb-23 21:29
Calin Negru2-Feb-23 21:29 
GeneralRe: Compilers Pin
Dave Kreskowiak3-Feb-23 11:32
mveDave Kreskowiak3-Feb-23 11:32 
It's possible to do. GCC is like that where it is a kind of modular approach. You can specify a platform you're compiling for and it'll use the appropriate compiler "module" to target the platform you specify.

An assembler can be written the same way, targeting a certain chipset, but even then, there are differences inside the same chip, called a "stepping" in modern parlance, where there are bug fixes in the hardware that an assembler has to take into account to generate correct code.

For example, the original 1975 production 6502 CPU had three shift/rotate instructions, ASL, LSR, and ROR. The ROR instruction was bugged where it didn't work correctly[^]. If the assembler didn't know about the bug and generated code that assumed the instruction was correct, your code would probably crash the system. The assembler had to know about the bug and generate equivalent code that didn't use the instruction.

The bug was fixed starting with the 1976 production.

GeneralRe: Compilers Pin
trønderen3-Feb-23 12:40
trønderen3-Feb-23 12:40 
AnswerRe: Compilers Pin
trønderen2-Feb-23 13:54
trønderen2-Feb-23 13:54 
GeneralRe: Compilers Pin
Calin Negru2-Feb-23 22:27
Calin Negru2-Feb-23 22:27 
GeneralRe: Compilers Pin
Richard MacCutchan2-Feb-23 23:16
mveRichard MacCutchan2-Feb-23 23:16 
GeneralRe: Compilers Pin
Calin Negru4-Feb-23 5:47
Calin Negru4-Feb-23 5:47 

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.