Sign In
Van's House
I'm a developer at C++ team. I'm interested in everything related to C++
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
Bug
C#
C++
C++0x
GCC
Optimization
Reverse Engineering
VC
Archive
Archives
February 2012
(3)
January 2012
(3)
May 2010
(6)
March 2010
(3)
November 2009
(1)
September 2009
(1)
August 2009
(1)
June 2009
(2)
May 2009
(2)
April 2009
(1)
March 2009
(1)
February 2009
(1)
January 2009
(1)
December 2008
(3)
October 2008
(2)
September 2008
(6)
August 2008
(3)
September, 2008
MSDN Blogs
>
Van's House
>
September, 2008
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Van's House
Minimize the size of your program - low level
Posted
over 4 years ago
by
Xiang Fan
1
Comments
NOTICE: The following is not intended for real-world application. It is just an intellectual exercise to minimize the size of the program. The generated PE file may or may not be valid as it depends on behavior of specific architecture, OS and toolset...
Van's House
Minimize the size of your program - assembly source
Posted
over 4 years ago
by
Xiang Fan
1
Comments
; based on tiny.asm, modified by xiangfan ;e_cblp 2b ;tbl 1b ;hexstr 1b ;LoaderFlags 4b BITS 32 ; ; MZ header ; ; The only two fields that matter are e_magic and e_lfanew mzhdr: dw "MZ" ; e_magic dw 0 ; e_cblp UNUSED ; ; PE signature ; pesig: dd "PE"...
Van's House
Minimize the size of your program - high level
Posted
over 4 years ago
by
Xiang Fan
1
Comments
NOTICE: The following is not intended for real-world application. It is just an intellectual exercise to minimize the size of the program. The generated PE file may or may not be valid as it depends on behavior of specific architecture, OS and toolset...
Van's House
Obfuscate your code
Posted
over 4 years ago
by
Xiang Fan
1
Comments
Obfuscation is widely used to protect your code from reverse engineering. Here is one example which takes advantage of indirected call and opcode overlap in X86: __declspec ( naked ) void Fun1() { __asm { //obfuscation chunk call LABEL1 LABEL1: pop eax...
Van's House
Play with the C++ compiler - compile nightmare
Posted
over 4 years ago
by
Xiang Fan
1
Comments
Playing with the compiler is interesting. One challenge for the compiler writer is compilation performance. There're many kinds of C++ code which are the nightmare for the compiler. Now let's go! 1. Preprocess a. Self Inclusion (GCC only) Normally...
Van's House
Magic behind ValueType.Equals
Posted
over 4 years ago
by
Xiang Fan
1
Comments
In "Effective C#", Bill Wagner says "Always create an override of ValueType.Equals() whenever you create a value type". His main consideration is the performance, because reflection is needed to compare two value types memberwisely. In fact, the framework...
Page 1 of 1 (6 items)