Skip to contentSkip to conversation

BCC software operations

PATCH Frank Cornelis 1 participant 1 message Dec 4, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

Why is bcc sometimes using software operations when there are hardware instructions available? Avoiding calls to software implementations of those operations can immensely speed up bcc generated code. It also voids the endless copy&paste of the implementations of the helper functions. BTW: Is someone still developing bcc? Is this the right mailing-list for bcc related questions? Are there any bcc user guides?

Please CC me,
Frank.

softop.c renamed from softop.c.orig +4 -1
@@ -219,7 +219,10 @@
        {
        case DIVOP:
 #ifdef I8088
-	   call("idiv_");
+	   //call("idiv_");
+	   outnop1str("cwd");
+	   outop2str("idiv\t");
+	   outnregname(INDREG0);
 #else
 	   call("idiv");
 #endif