Click here to Skip to main content
15,883,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: How to overwrite one angle arc over other during runtime Pin
Kornfeld Eliyahu Peter30-Mar-16 2:06
professionalKornfeld Eliyahu Peter30-Mar-16 2:06 
QuestionC, Win32 API: l need a help Pin
Member 1213944229-Mar-16 21:19
Member 1213944229-Mar-16 21:19 
SuggestionRe: C, Win32 API: l need a help Pin
David Crow30-Mar-16 10:09
David Crow30-Mar-16 10:09 
AnswerRe: C, Win32 API: l need a help Pin
Victor Nijegorodov31-Mar-16 1:11
Victor Nijegorodov31-Mar-16 1:11 
Questionproblem with compiler Pin
Ngoc Linh Nguyen29-Mar-16 20:52
Ngoc Linh Nguyen29-Mar-16 20:52 
AnswerRe: problem with compiler Pin
Jochen Arndt29-Mar-16 21:33
professionalJochen Arndt29-Mar-16 21:33 
GeneralRe: problem with compiler Pin
Ngoc Linh Nguyen30-Mar-16 3:14
Ngoc Linh Nguyen30-Mar-16 3:14 
GeneralRe: problem with compiler Pin
Jochen Arndt30-Mar-16 4:15
professionalJochen Arndt30-Mar-16 4:15 
GPU's are complete different. They are accessed by operation system dependant drivers for normal operation. While it is possible to perform calculations on modern GPU's, these use their own compilers (e.g. The LLVM Compiler Infrastructure Project[^]).

Intel and AMD have basically the same instruction set. The same applies to other x86 based CPUs (VIA, Cyrix). There are only a very few manufacturer specific instructions. Compilers will not use these instructions by default and might even not provide options to use them. But even then compiling for a specific manufacturer would result only in marginal decreased code size. See also Differences between AMD64 and Intel 64 at x86-64 - Wikipedia, the free encyclopedia[^]

The code size can be slightly decreased (together with slightly increased performance) when generating code for newer processor generations. This is mainly achieved by enabling Streaming SIMD Extensions - Wikipedia, the free encyclopedia[^] for older processors and Advanced Vector Extensions - Wikipedia, the free encyclopedia[^] and the FMA instruction set - Wikipedia, the free encyclopedia[^] for newer ones.

Operating system distributions should run on all systems matching the minimum requirements. Therefore, they are usually build to support also older CPU's. However, they (and also applications) may detect the CPU and use modern instructions when supported. While this increases the code size it will also increase performance.

I can't tell you how much the size decreases when compiling a Linux kernel for a more recent CPU. If you really want to know it, you have to do it.

But reducing the code size should be not necessary nowadays where systems have a lot of storage (RAM and drives).
GeneralRe: problem with compiler Pin
Ngoc Linh Nguyen30-Mar-16 5:36
Ngoc Linh Nguyen30-Mar-16 5:36 
GeneralRe: problem with compiler Pin
Jochen Arndt30-Mar-16 5:53
professionalJochen Arndt30-Mar-16 5:53 
GeneralRe: problem with compiler Pin
Ngoc Linh Nguyen30-Mar-16 5:58
Ngoc Linh Nguyen30-Mar-16 5:58 
GeneralRe: problem with compiler Pin
Ngoc Linh Nguyen31-Mar-16 0:39
Ngoc Linh Nguyen31-Mar-16 0:39 
GeneralRe: problem with compiler Pin
Jochen Arndt31-Mar-16 0:51
professionalJochen Arndt31-Mar-16 0:51 
Questionproblem with compiler Pin
Ngoc Linh Nguyen29-Mar-16 20:52
Ngoc Linh Nguyen29-Mar-16 20:52 
QuestionInitDialog in splitter Pin
Member 1228273828-Mar-16 10:07
Member 1228273828-Mar-16 10:07 
QuestionRe: InitDialog in splitter Pin
Richard MacCutchan28-Mar-16 21:46
mveRichard MacCutchan28-Mar-16 21:46 
AnswerRe: InitDialog in splitter Pin
Victor Nijegorodov29-Mar-16 2:20
Victor Nijegorodov29-Mar-16 2:20 
GeneralRe: InitDialog in splitter Pin
Member 1228273829-Mar-16 3:04
Member 1228273829-Mar-16 3:04 
GeneralRe: InitDialog in splitter Pin
Richard MacCutchan29-Mar-16 4:23
mveRichard MacCutchan29-Mar-16 4:23 
GeneralRe: InitDialog in splitter Pin
Member 1228273829-Mar-16 7:12
Member 1228273829-Mar-16 7:12 
GeneralRe: InitDialog in splitter Pin
Richard MacCutchan29-Mar-16 7:19
mveRichard MacCutchan29-Mar-16 7:19 
GeneralRe: InitDialog in splitter Pin
Member 1228273829-Mar-16 10:41
Member 1228273829-Mar-16 10:41 
GeneralRe: InitDialog in splitter Pin
David Crow29-Mar-16 14:49
David Crow29-Mar-16 14:49 
GeneralRe: InitDialog in splitter Pin
Victor Nijegorodov30-Mar-16 5:09
Victor Nijegorodov30-Mar-16 5:09 
SuggestionRe: InitDialog in splitter Pin
David Crow29-Mar-16 9:11
David Crow29-Mar-16 9:11 

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.