Implement a micro-optimization which has been on our TODO list for ages:

remove "or ebp,-1" when not needed
This commit is contained in:
Markus F.X.J. Oberhumer
2006-12-08 09:20:14 +01:00
parent 217420cfa5
commit a77b598f82
22 changed files with 5925 additions and 5821 deletions
+3 -1
View File
@@ -92,7 +92,9 @@ void PackWcle::buildLoader(const Filter *ft)
{
// prepare loader
initLoader(stub_i386_dos32_watcom_le, sizeof(stub_i386_dos32_watcom_le));
addLoader("IDENTSTR,WCLEMAIN,UPX1HEAD,WCLECUTP", NULL);
addLoader("IDENTSTR,WCLEMAIN",
ph.first_offset_found == 1 ? "WCLEMAIN02" : "",
"WCLEMAIN03,UPX1HEAD,WCLECUTP", NULL);
// fake alignment for the start of the decompressor
linker->defineSymbol("WCLECUTP", 0x1000);