Hex: 3B9ACA00 DEC: 1000000000 OCT: 7346545000 BIN: 00111011100110101100101000000000
Zuoliu Ding
Posts
-
How many zeroes in a billion? -
Cosmetic vs More EfficientYea, I see your point here on preferences. When saw the subject like More Efficient, it often made me think about actual implementation details. But fine, thanks for your good explanation
-
Cosmetic vs More EfficientThis looks like a script function not in C/C++. As for this example in VC++
void whatEver(int inVal) { // This ? if(inVal==0) inVal = internalDefault; // or this? inVal = (inVal==0)?internalDefault:inVal; } // function whatEver(inVal=NULL)
See disassembly code in Debug build as simply:; 16 : // This ? ; 17 : if(inVal==0) cmp DWORD PTR _inVal$[ebp], 0 jne SHORT $LN2@whatEver ; 18 : inVal = internalDefault; mov DWORD PTR _inVal$[ebp], 123 ; 0000007bH $LN2@whatEver:
While the other just; 21 : inVal = (inVal==0)?internalDefault:inVal; cmp DWORD PTR _inVal$[ebp], 0 jne SHORT $LN4@whatEver mov DWORD PTR tv66[ebp], 123 ; 0000007bH jmp SHORT $LN5@whatEver $LN4@whatEver: mov eax, DWORD PTR _inVal$[ebp] mov DWORD PTR tv66[ebp], eax $LN5@whatEver: mov ecx, DWORD PTR tv66[ebp] mov DWORD PTR _inVal$[ebp], ecx
But you can't see both in Release build because both optimized in compilation. -
Are there any honest booksellers left?Unfortunately the new 8th edition is now available as eText: https://www.vitalsource.com/educators/products/assembly-language-for-x86-processors-kip-r-irvine-v9780135381793?term=9780135381793 only with a (LOOSE-LEAF) Print if requested Actually you can use the previous 7th paper-book, even a used one: https://www.pearson.com/us/higher-education/product/Irvine-Assembly-Language-for-x-86-Processors-7th-Edition/9780133769401.html much cheaper and easy to get, because almost all chapter contents are the same. The major change to 8th is just the interactive functionality in questions, links, videos, etc. online that you don't need to care. For code downloading text samples and its library, simply go www.asmirvine.com, where you can click the links "Getting started with MASM and Visual Studio 2019" and "Debugging tools" etc. to start Good luck!
-
Learning Assembler (64 bit)Try to take a look at this book "Assembly Language for x86 Processors", http://kipirvine.com/asm/ that is Windows and Visual Studio based textbook. Although it titled as x86 (32-bit) because of its history reason, it actually gives 64-bit assembly description almost at each chapter end. You also can find author's x64 libraries and practice 64-bit programming with VS. I am teaching ASM with this book for years and think it really a nice learning environment there.
-
MS Certifications.. is it Worth it?It may help to get a job with additions in your resume, but might not very useful in the real daily development.
-
What laptop do you use?A refurbished Mac book Pro with 13"/i7/16G/1TB as this http://www.apple.com/shop/product/G0QP2LL/A/refurbished-133-inch-macbook-pro-31ghz-dual-core-intel-i7-with-retina-display Simply made it with half storage for Boot Camp/Windows 10 and it worked quite well.
-
A debate: making votes non-anonymousWould it be fine to have an option of a small check box to let the voter select if s/he wants to show the name or not
-
To script or not to script...Try Power Shell script if like
-
Codeproject vs stackoverflowBoth should be considered good and useful that just target to different readers and different occasions with different purposes
-
Should Programming be a life career?if for living
-
How to create an online help site?I want to create an online help site for a small software product. Could you please give some suggestions? Which one is better: - Traditional MS Help workshop to compile help (.chm) file? - Using ASP.NET Master/Content pages with Navigation Controls? - Or is there any Ajax or other toolkit recommended for this purpose? Thanks a lot!
-
Staff vs. SeniorI don't mean the total number of staff in a company. Just curious - if there is a title called "Staff Software Engineer" in your company, is it ranked higher or lower than "Senior Software Engineer"?
-
Staff vs. SeniorI have worked for several companies. Their software engineer title ranking looks a lot different. The most confusing would be Staff software engineer and Senior software engineer. In one company, Staff is higher than Senior, but in another, Senior is higher. How about those in yours?