Skip to content

Commit a5e0ad3

Browse files
committed
Commit of the version used for Clean Slate
This is a cumulative commit of all our changes that resulted in the pack ratio analysis used to achieve Clean Slate.
1 parent 9e0ffd5 commit a5e0ad3

25 files changed

+7288
-6555
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
*/ipch/*
88
Debug
99
Release
10-
*.vcxproj.user
10+
*.vcxproj.user
11+
*.vs/*

README.md

+43-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,46 @@ I renamed the project to avoid confusion with rygs original version.
99

1010
So far everything works the same, except that pdb loading and size reports work again.
1111

12-
Feel free to get in touch at [email protected]
12+
Feel free to get in touch at [email protected]
13+
14+
15+
-------------------------------------------------------------------------------------------------------------
16+
17+
Changes by BoyC / Conspiracy:
18+
19+
* added .kkp export for byte exact pack ratio, analyzer tool to be released soon, file format described below
20+
* fixed PE header so that the Microsoft exe signing tool actually recognizes produced binaries as executables
21+
* As the result of the PE header fix, expanded the MZ header with some custom art
22+
23+
KKP file format:
24+
Used to describe a binary file with all its contents and compression statistics, including symbol info
25+
26+
4 bytes: FOURCC: 'KK64'
27+
4 bytes: size of described binary in bytes (Ds)
28+
4 bytes: number of source code files (Cc)
29+
30+
// source code descriptors:
31+
Cc times:
32+
ASCIIZ string: filename
33+
float: packed size for the complete file
34+
4 bytes: unpacked size for the complete file, in int
35+
36+
4 bytes: number of symbols (Sc)
37+
38+
// symbol data:
39+
Sc times:
40+
ASCIIZ string: symbol name
41+
double: packed size of symbol
42+
4 bytes: unpacked size of symbol in bytes
43+
1 byte: boolean to tell if symbol is code (true if yes)
44+
4 bytes: source code file ID
45+
4 bytes: source code line ID
46+
47+
// binary compression data:
48+
49+
Ds times: (for each byte of the described binary)
50+
1 byte: original data from the binary
51+
2 bytes: symbol index
52+
double: packed size
53+
2 bytes: source code line
54+
2 bytes: source code file index

_config.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111

1212
// Compile Options
1313

14+
namespace rekkrunchy
15+
{
16+
1417
#define sINTRO 0 // compile for small size
1518
#define sDEBUG 1 // include debug code even in release build
1619
#define sAPPNAME "rekkrunchy" // application name for window title
1720
#define sVERSION "0.30" // version number string
21+
22+
}

0 commit comments

Comments
 (0)