You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
modify API_test.dll build process to reduce diff sizes between compiles
-split static CRT parts into a separate DLL, this code is not going to
change unless someone uses a different VC version to compile the RTC DLL
-delete the /Debug and /Release DLL files, I dont commit them since they
are duplicates of the root DLLs and thus make the repo pointlessly larger
-minimize use of CRT, use Win32 calls instead of CRT calls, this way less
stdio/format string things need to be stored in the RTC DLL, use custom
DllMain to not pull in CRT startup code, this makes API_test.dll smaller
by less machine code and const/non-const data in it, so if something
happen to cause the location of every function in the DLL to move and
all relative/offset pointers in the machine code to .rdata/.data to
numerically change, there is less to change in the diff
-stop using PCH+delete PCH files, no perf gain, W32A isn't a massive C++
codebase, less files in tarball/on disk
-removing PCH made the #pragma pack(1) actually take effect, this changed
the offsets of the members in simple_struct to an very rarely seen in
typical C code layout and caused a crash in 01_Struct.t . Remove pack(1).
0 commit comments