Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 6951

Questions about C++, a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.

14 votes
Accepted

How important is memory alignment? Does it still matter?

Yes both alignment and arrangement of your data can make a big difference in performance, not just a few percent but few to many hundreds of a percent. Take this loop, two instructions matter if you …
old_timer's user avatar
  • 969
0 votes

What does it mean to declare a volatile variable?

The answers seem pretty consistent but missing an important point. You are telling the compiler that you want to to allocate space and for every access, read OR WRITE, you want it to perform that acc …
old_timer's user avatar
  • 969
2 votes

How does assembly relate to machine/binary code

So ideally assembly language has a one to one relationship with machine code. One line or mnemonic (add, sub, xor...) goes with one machine instruction (add, sub, xor...). Then to make programming …
old_timer's user avatar
  • 969
-1 votes

How would I make a compiler in C++?

There is not much difference between understanding assembly and understanding the machine code that it creates. You should create your own assembler or at least study the disassembly of asm that has …
old_timer's user avatar
  • 969