Search Results
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 |
For reviews of code which implements any part of a compiler - lexing, parsing, code generation and optimization, etc. Also for any plugin for an existing compiler. Don't use this tag for code which is input to a compiler - tag it with the correct language instead.
1
vote
1D Convolution vector multiplication in ANSI C code
So in this piece of code for example:
b[i] = 0.0f;
for (j = 0; j < row_k; j++) {
b[i] += a[j] * k[j];
}
The compiler must assume that any write to b[i] might invalidate any value in a[] and k[]. …
6
votes
Accepted
C++ - Lexer for the Monkey Programming Language from the book "Writing An Interpreter In Go"
You probably noticed you got compiler warnings when you wrote token_strs[idx] when idx was an int; instead of static_casting it to std::size_t, you could have avoided that by making it a std::size_t to …
5
votes
Accepted
AEC-to-WebAssembly compiler in C++
Apart from resulting in slightly more concise code, the advantage is that the compiler will then check if you covered all the possible values of that enum, and if not it will print a warning. … There is no need to call return after a function like exit() or abort(), as the compiler knows that those functions will never return.
Don't use std::endl
Prefer using \n instead of std::endl. …