New: compilersAll contenthive-129948hive-196917krhive-166405zzanhive-185836hive-150122hive-183959hive-180932photographysteemhive-144064hive-101145hive-183397hive-184714hive-188619uncommonlabhive-145157bitcoinhive-103599hive-193637hive-180106hive-193186krsuccesshive-113376TrendingNewHotLikersmarkgritter (59)in programming • 6 years agoCompiling swap()"How do I swap two variables without using a temporary variable?" is one of the dumber programming questions. Please tell me you don't use this in interviews. There's the sensible way, the way…markgritter (59)in programming • 7 years agosteemCreated with Sketch.Handling integer overflowIn a previous article I showed that the Swift compiler checks for overflow after every mathematical operation, like this assembly fragment: imul rdi, r8markgritter (59)in programming • 7 years agosteemCreated with Sketch.How does a compiler implement division?Many programmers realize they can replace division or multiplication by a power of two with a bit-shift operation that is (usually) more efficient. But what if we want to divide by a constant other…markgritter (59)in programming • 7 years agoDo Compilers Implement Horner's Method?Horner's Method Suppose you want to calculate the value of the degree-3 polynomial ax^3 + bx^2 + cx + d for a particular x . The really inefficient way is to compute ax^3 , then bx^2 …markgritter (59)in programming • 7 years agoCompiler Explorer: a Rosetta Stone for Compilersgodbolt.org is a tool for exploring compiler behavior and output. It offers the ability to compile C++ and other languages with a variety of different compiler versions and machine targets, and…riyasaat (40)in codeblocks • 7 years agoHow to Setup CodeBlocks|| What is IDE? || Tutorial 1 || Learn C Programming From the Scratch SeriesWhat's up good folks, it me @riyasaat the ultimate techno freak is back again with my very 1st blog of the series call "Learn C Programming From the Scratch Series". In this blog I'll be…alexgr (66)in development • 8 years agoCreating faster C/C++ binaries without changing a single line of codeThe last few years, while trying to squeeze any performance possible in CPU mining, I've tried all sorts of "peripheral" things (=changing 0 lines of code) in order to attain the best possible…andy68107 (26)in computers • 8 years agoSome Information on C# and how the JUST IN TIME compiler worksI am an Information Technology student, and as such I have wrote many papers as homework assignment. Some of which have some interesting if not valuable information. All of which have summarized…